Explorar el Código

Merge pull request #12227 from jbeich/gamemode

cmake: unbreak build on FreeBSD by re-enabling gamemode
liamwhite hace 2 años
padre
commit
3a12fe5d13
Se han modificado 2 ficheros con 2 adiciones y 2 borrados
  1. 1 1
      externals/CMakeLists.txt
  2. 1 1
      src/common/CMakeLists.txt

+ 1 - 1
externals/CMakeLists.txt

@@ -193,7 +193,7 @@ if (ANDROID)
    endif()
 endif()
 
-if (CMAKE_SYSTEM_NAME STREQUAL "Linux")
+if (UNIX AND NOT APPLE)
     add_subdirectory(gamemode)
 endif()
 

+ 1 - 1
src/common/CMakeLists.txt

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