Преглед изворни кода

general: conditionally compile gamemode on linux only

Liam пре 2 година
родитељ
комит
5eec980a2d
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 {