From 4c0b0b839767fc88cbc33275fd017cc3be65fd1c Mon Sep 17 00:00:00 2001 From: Bruno Van de Velde Date: Wed, 15 Nov 2023 15:00:33 +0100 Subject: [PATCH] Don't check the CMAKE_ANDROID_API version. It was replaced with CMAKE_SYSTEM_VERSION and we can use versions older than 26 with the current NDK --- CMakeLists.txt | 5 ----- 1 file changed, 5 deletions(-) diff --git a/CMakeLists.txt b/CMakeLists.txt index f06ac5655..8a6cd989f 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -81,11 +81,6 @@ if(SFML_OS_ANDROID) # avoid missing libraries when building SFML for Android with NDK r19c and later list(PREPEND CMAKE_FIND_ROOT_PATH "${PROJECT_SOURCE_DIR}") - # make sure there's the android library available - if(CMAKE_ANDROID_API LESS 26) - message(FATAL_ERROR "Android API level (${CMAKE_ANDROID_API}) must be equal or greater than 26.") - endif() - # CMake doesn't support defining the STL to be used with Nsight Tegra, so warn the user if(CMAKE_VS_PLATFORM_NAME STREQUAL "Tegra-Android") message(WARNING "CMake might not properly support setting the STL. Make sure to adjust all generated library projects!")