VERY experimental Nintendo Switch 2 emulator
C++
general: conditionally compile gamemode on linux only
Liam0fff56e1ef1d
diff --git a/externals/CMakeLists.txt b/externals/CMakeLists.txtindex 070151bec6..40ec20f3dd 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.txtindex 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 PRIVATElinux/gamemode.cpplinux/gamemode.hdiff --git a/src/common/linux/gamemode.cpp b/src/common/linux/gamemode.cppindex 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 {