diff options
| author | 2023-11-29 14:17:12 -0500 | |
|---|---|---|
| committer | 2023-11-29 14:26:11 -0500 | |
| commit | 5eec980a2d710a1fa1bfb0f8ba58ecdae3aab04d (patch) | |
| tree | 039dc2b3dc42aa51df063a873bbd0b78cfbe227f | |
| parent | Merge pull request #12204 from t895/config-migration (diff) | |
| download | yuzu-5eec980a2d710a1fa1bfb0f8ba58ecdae3aab04d.tar.gz yuzu-5eec980a2d710a1fa1bfb0f8ba58ecdae3aab04d.tar.xz yuzu-5eec980a2d710a1fa1bfb0f8ba58ecdae3aab04d.zip | |
general: conditionally compile gamemode on linux only
Diffstat (limited to '')
| -rw-r--r-- | externals/CMakeLists.txt | 2 | ||||
| -rw-r--r-- | src/common/CMakeLists.txt | 2 | ||||
| -rw-r--r-- | src/common/linux/gamemode.cpp | 1 |
3 files changed, 3 insertions, 2 deletions
diff --git a/externals/CMakeLists.txt b/externals/CMakeLists.txt index 070151bec..40ec20f3d 100644 --- a/externals/CMakeLists.txt +++ b/externals/CMakeLists.txt | |||
| @@ -189,7 +189,7 @@ if (ANDROID) | |||
| 189 | endif() | 189 | endif() |
| 190 | endif() | 190 | endif() |
| 191 | 191 | ||
| 192 | if (UNIX) | 192 | if (CMAKE_SYSTEM_NAME STREQUAL "Linux") |
| 193 | add_subdirectory(gamemode) | 193 | add_subdirectory(gamemode) |
| 194 | endif() | 194 | endif() |
| 195 | 195 | ||
diff --git a/src/common/CMakeLists.txt b/src/common/CMakeLists.txt index 57cbb9d07..2651daadb 100644 --- a/src/common/CMakeLists.txt +++ b/src/common/CMakeLists.txt | |||
| @@ -174,7 +174,7 @@ if(ANDROID) | |||
| 174 | ) | 174 | ) |
| 175 | endif() | 175 | endif() |
| 176 | 176 | ||
| 177 | if (UNIX) | 177 | if (CMAKE_SYSTEM_NAME STREQUAL "Linux") |
| 178 | target_sources(common PRIVATE | 178 | target_sources(common PRIVATE |
| 179 | linux/gamemode.cpp | 179 | linux/gamemode.cpp |
| 180 | linux/gamemode.h | 180 | linux/gamemode.h |
diff --git a/src/common/linux/gamemode.cpp b/src/common/linux/gamemode.cpp index 8876d8dc4..8d3e2934a 100644 --- a/src/common/linux/gamemode.cpp +++ b/src/common/linux/gamemode.cpp | |||
| @@ -4,6 +4,7 @@ | |||
| 4 | #include <gamemode_client.h> | 4 | #include <gamemode_client.h> |
| 5 | 5 | ||
| 6 | #include "common/linux/gamemode.h" | 6 | #include "common/linux/gamemode.h" |
| 7 | #include "common/logging/log.h" | ||
| 7 | #include "common/settings.h" | 8 | #include "common/settings.h" |
| 8 | 9 | ||
| 9 | namespace Common::Linux { | 10 | namespace Common::Linux { |