소스 검색

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