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

@ -193,8 +193,10 @@ if (ANDROID)
endif()
endif()
if (UNIX AND NOT APPLE)
add_subdirectory(gamemode)
if (UNIX AND NOT APPLE AND NOT TARGET gamemode::headers)
add_library(gamemode INTERFACE)
target_include_directories(gamemode INTERFACE gamemode)
add_library(gamemode::headers ALIAS gamemode)
endif()
# Breakpad