From 5eec980a2d710a1fa1bfb0f8ba58ecdae3aab04d Mon Sep 17 00:00:00 2001 From: Liam Date: Wed, 29 Nov 2023 14:17:12 -0500 Subject: general: conditionally compile gamemode on linux only --- src/common/CMakeLists.txt | 2 +- src/common/linux/gamemode.cpp | 1 + 2 files changed, 2 insertions(+), 1 deletion(-) (limited to 'src/common') 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 #include "common/linux/gamemode.h" +#include "common/logging/log.h" #include "common/settings.h" namespace Common::Linux { -- cgit v1.2.3