cmake: prefer system gamemode library

This commit is contained in:
Alexandre Bouvier 2023-11-03 19:27:08 +01:00
parent 4655051987
commit 6d1049366d
8 changed files with 29 additions and 18 deletions

View file

@ -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}")