Android: Fix condition detecting no APIs found in the NDK

Fixes: #26210
This commit is contained in:
Tudy Gourmelen
2024-08-12 14:22:23 +02:00
parent b2b3c5825f
commit 4b84596dcf

View File

@@ -533,7 +533,7 @@ elseif(CMAKE_ANDROID_NDK)
set(_ANDROID_APIS ${_ANDROID_APIS_1} ${_ANDROID_APIS_2})
unset(_ANDROID_APIS_1)
unset(_ANDROID_APIS_2)
if(_ANDROID_APIS STREQUAL "")
if(NOT DEFINED _ANDROID_APIS OR _ANDROID_APIS STREQUAL "")
message(FATAL_ERROR
"Android: No APIs found in the NDK. No\n"
" ${CMAKE_ANDROID_NDK}/platforms/android-*\n"