summaryrefslogtreecommitdiffstats
path: root/src/common
diff options
context:
space:
mode:
authorNarr the Reg <juangerman-13@hotmail.com>2023-11-29 21:28:37 +0100
committerGitHub <noreply@github.com>2023-11-29 21:28:37 +0100
commit9dc9aaf4af1c3c846c9cd46a9433dcf0684da19b (patch)
tree039dc2b3dc42aa51df063a873bbd0b78cfbe227f /src/common
parentMerge pull request #12204 from t895/config-migration (diff)
parentgeneral: conditionally compile gamemode on linux only (diff)
downloadyuzu-9dc9aaf4af1c3c846c9cd46a9433dcf0684da19b.tar
yuzu-9dc9aaf4af1c3c846c9cd46a9433dcf0684da19b.tar.gz
yuzu-9dc9aaf4af1c3c846c9cd46a9433dcf0684da19b.tar.bz2
yuzu-9dc9aaf4af1c3c846c9cd46a9433dcf0684da19b.tar.lz
yuzu-9dc9aaf4af1c3c846c9cd46a9433dcf0684da19b.tar.xz
yuzu-9dc9aaf4af1c3c846c9cd46a9433dcf0684da19b.tar.zst
yuzu-9dc9aaf4af1c3c846c9cd46a9433dcf0684da19b.zip
Diffstat (limited to 'src/common')
-rw-r--r--src/common/CMakeLists.txt2
-rw-r--r--src/common/linux/gamemode.cpp1
2 files changed, 2 insertions, 1 deletions
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)
)
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 8876d8dc4..8d3e2934a 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 {