Răsfoiți Sursa

Merge topic 'fix_condition_android_determine'

4b84596dcf Android: Fix condition detecting no APIs found in the NDK

Acked-by: Kitware Robot <[email protected]>
Merge-request: !9721
Craig Scott 1 an în urmă
părinte
comite
41da7a4a9a
1 a modificat fișierele cu 1 adăugiri și 1 ștergeri
  1. 1 1
      Modules/Platform/Android-Determine.cmake

+ 1 - 1
Modules/Platform/Android-Determine.cmake

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