diff options
author | Jan Beich <jbeich@FreeBSD.org> | 2023-11-29 23:11:36 +0100 |
---|---|---|
committer | Jan Beich <jbeich@FreeBSD.org> | 2023-11-30 00:05:11 +0100 |
commit | df96caec793fbf4262a2dee2a77cbd09725a078d (patch) | |
tree | bcb255472ae86f2030831c1986ca3d0191ae159f | |
parent | 9dc9aaf4af1c3c846c9cd46a9433dcf0684da19b (diff) |
cmake: sync gamemode conditionals with code after 5eec980a2d71
FAILED: bin/yuzu
ld: error: unable to find library -lgamemode
FAILED: bin/yuzu-cmd
ld: error: undefined symbol: Common::Linux::StartGamemode()
>>> referenced by yuzu.cpp
>>> src/yuzu_cmd/CMakeFiles/yuzu-cmd.dir/yuzu.cpp.o:(main)
ld: error: undefined symbol: Common::Linux::StopGamemode()
>>> referenced by yuzu.cpp
>>> src/yuzu_cmd/CMakeFiles/yuzu-cmd.dir/yuzu.cpp.o:(main)
-rw-r--r-- | externals/CMakeLists.txt | 2 | ||||
-rw-r--r-- | src/common/CMakeLists.txt | 2 |
2 files changed, 2 insertions, 2 deletions
diff --git a/externals/CMakeLists.txt b/externals/CMakeLists.txt index 40ec20f3d..3213a16ef 100644 --- a/externals/CMakeLists.txt +++ b/externals/CMakeLists.txt @@ -189,7 +189,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 2651daadb..289760c40 100644 --- a/src/common/CMakeLists.txt +++ b/src/common/CMakeLists.txt @@ -174,7 +174,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 |