Browse Source

Merge pull request #12227 from jbeich/gamemode

cmake: unbreak build on FreeBSD by re-enabling gamemode
liamwhite 2 năm trước cách đây
mục cha
commit
3a12fe5d13
2 tập tin đã thay đổi với 2 bổ sung2 xóa
  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