diff --git a/externals/CMakeLists.txt b/externals/CMakeLists.txt index 8e1fc696a8..04007a5385 100644 --- a/externals/CMakeLists.txt +++ b/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() diff --git a/src/common/CMakeLists.txt b/src/common/CMakeLists.txt index bbc55eb56a..2c6fc76570 100644 --- a/src/common/CMakeLists.txt +++ b/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