[build, cmake] fix android
All checks were successful
eden-license / license-header (pull_request) Successful in 43s

This commit is contained in:
lizzie 2025-07-23 17:35:15 +01:00
parent 016ebf3cd8
commit 666d18cde8
2 changed files with 2 additions and 2 deletions

View file

@ -415,7 +415,7 @@ if(ENABLE_OPENSSL)
find_package(OpenSSL 1.1.1 REQUIRED) find_package(OpenSSL 1.1.1 REQUIRED)
endif() endif()
if (CMAKE_SYSTEM_NAME STREQUAL "Linux" AND NOT ANDROID) if (CMAKE_SYSTEM_NAME STREQUAL "Linux" OR ANDROID)
find_package(gamemode 1.7 MODULE) find_package(gamemode 1.7 MODULE)
endif() endif()

View file

@ -211,7 +211,7 @@ if (ANDROID)
endif() endif()
endif() endif()
if (CMAKE_SYSTEM_NAME STREQUAL "Linux" AND NOT ANDROID AND NOT TARGET gamemode::headers) if ((CMAKE_SYSTEM_NAME STREQUAL "Linux" OR ANDROID) AND NOT TARGET gamemode::headers)
add_library(gamemode INTERFACE) add_library(gamemode INTERFACE)
target_include_directories(gamemode INTERFACE gamemode) target_include_directories(gamemode INTERFACE gamemode)
add_library(gamemode::headers ALIAS gamemode) add_library(gamemode::headers ALIAS gamemode)