瀏覽代碼

Merge pull request #12227 from jbeich/gamemode

cmake: unbreak build on FreeBSD by re-enabling gamemode
liamwhite 2 年之前
父節點
當前提交
3a12fe5d13
共有 2 個文件被更改,包括 2 次插入2 次删除
  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