diff options
| author | Narr the Reg <juangerman-13@hotmail.com> | 2023-11-29 14:28:37 -0600 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2023-11-29 14:28:37 -0600 |
| commit | 32380366f7cbf186a6471d83beb3f34d17deb4f7 (patch) | |
| tree | 039dc2b3dc42aa51df063a873bbd0b78cfbe227f /src | |
| parent | 308b8211ef003e9654fbb0d939d127e133bb3f65 (diff) | |
| parent | 0fff56e1ef1d42a6252a1dd209c9d571687fb98f (diff) | |
Merge pull request #12223 from liamwhite/fruit-company
general: conditionally compile gamemode on linux only
Diffstat (limited to 'src')
| -rw-r--r-- | src/common/CMakeLists.txt | 2 | ||||
| -rw-r--r-- | src/common/linux/gamemode.cpp | 1 |
2 files changed, 2 insertions, 1 deletions
diff --git a/src/common/CMakeLists.txt b/src/common/CMakeLists.txt index 57cbb9d072..2651daadbb 100644 --- a/src/common/CMakeLists.txt +++ b/src/common/CMakeLists.txt @@ -174,7 +174,7 @@ if(ANDROID) ) endif() -if (UNIX) +if (CMAKE_SYSTEM_NAME STREQUAL "Linux") target_sources(common PRIVATE linux/gamemode.cpp linux/gamemode.h diff --git a/src/common/linux/gamemode.cpp b/src/common/linux/gamemode.cpp index 8876d8dc42..8d3e2934a6 100644 --- a/src/common/linux/gamemode.cpp +++ b/src/common/linux/gamemode.cpp @@ -4,6 +4,7 @@ #include <gamemode_client.h> #include "common/linux/gamemode.h" +#include "common/logging/log.h" #include "common/settings.h" namespace Common::Linux { |
