diff options
author | Alexandre Bouvier <contact@amb.tf> | 2023-11-03 19:27:08 +0100 |
---|---|---|
committer | Alexandre Bouvier <contact@amb.tf> | 2023-11-30 16:54:00 +0100 |
commit | d2bb9e9729bbdeb396817c2335c4fafbf5ac94a2 (patch) | |
tree | f09b1f3a4c07ffdd1ba36ad6993a3220c5fbdf0b /CMakeLists.txt | |
parent | 127bfb81d5f03eb86f21053e6423083fec18d3fa (diff) |
cmake: prefer system gamemode library
Diffstat (limited to 'CMakeLists.txt')
-rw-r--r-- | CMakeLists.txt | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/CMakeLists.txt b/CMakeLists.txt index 599f7c831..18b8f7967 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -343,6 +343,10 @@ if(ENABLE_OPENSSL) find_package(OpenSSL 1.1.1 REQUIRED) endif() +if (UNIX AND NOT APPLE) + find_package(gamemode 1.7 MODULE) +endif() + # Please consider this as a stub if(ENABLE_QT6 AND Qt6_LOCATION) list(APPEND CMAKE_PREFIX_PATH "${Qt6_LOCATION}") |