summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--externals/CMakeLists.txt2
-rw-r--r--src/common/CMakeLists.txt2
-rw-r--r--src/common/linux/gamemode.cpp1
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)
endif()
endif()
-if (UNIX)
+if (CMAKE_SYSTEM_NAME STREQUAL "Linux")
add_subdirectory(gamemode)
endif()
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 {