Просмотр исходного кода

Merge pull request #12223 from liamwhite/fruit-company

general: conditionally compile gamemode on linux only
Narr the Reg 2 лет назад
Родитель
Сommit
9dc9aaf4af
3 измененных файлов с 3 добавлено и 2 удалено
  1. 1 1
      externals/CMakeLists.txt
  2. 1 1
      src/common/CMakeLists.txt
  3. 1 0
      src/common/linux/gamemode.cpp

+ 1 - 1
externals/CMakeLists.txt

@@ -189,7 +189,7 @@ if (ANDROID)
    endif()
 endif()
 
-if (UNIX)
+if (CMAKE_SYSTEM_NAME STREQUAL "Linux")
     add_subdirectory(gamemode)
 endif()
 

+ 1 - 1
src/common/CMakeLists.txt

@@ -174,7 +174,7 @@ if(ANDROID)
     )
 endif()
 
-if (UNIX)
+if (CMAKE_SYSTEM_NAME STREQUAL "Linux")
   target_sources(common PRIVATE
     linux/gamemode.cpp
     linux/gamemode.h

+ 1 - 0
src/common/linux/gamemode.cpp

@@ -4,6 +4,7 @@
 #include <gamemode_client.h>
 
 #include "common/linux/gamemode.h"
+#include "common/logging/log.h"
 #include "common/settings.h"
 
 namespace Common::Linux {