Browse Source

general: conditionally compile gamemode on linux only

nce_cpp
Liam 2 years ago
parent
commit
0fff56e1ef
  1. 2
      externals/CMakeLists.txt
  2. 2
      src/common/CMakeLists.txt
  3. 1
      src/common/linux/gamemode.cpp

2
externals/CMakeLists.txt

@ -189,7 +189,7 @@ if (ANDROID)
endif()
endif()
if (UNIX)
if (CMAKE_SYSTEM_NAME STREQUAL "Linux")
add_subdirectory(gamemode)
endif()

2
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

1
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 {

Loading…
Cancel
Save