summaryrefslogtreecommitdiffstats
path: root/Modules
diff options
context:
space:
mode:
authorBrad King <brad.king@kitware.com>2020-10-13 12:38:44 (GMT)
committerKitware Robot <kwrobot@kitware.com>2020-10-13 12:38:54 (GMT)
commit01ae8149b83bedc71f6f662e21edc7307a66c01f (patch)
tree7bdc4835b2b9dafa5f1e9e9742245b2299b979f9 /Modules
parentdf87db1fac3e6aa969972b5dd083fc5933fc23e5 (diff)
parent5c2f9e3eeb89c50fa110daa1f33945381b1416ed (diff)
downloadCMake-01ae8149b83bedc71f6f662e21edc7307a66c01f.zip
CMake-01ae8149b83bedc71f6f662e21edc7307a66c01f.tar.gz
CMake-01ae8149b83bedc71f6f662e21edc7307a66c01f.tar.bz2
Merge topic 'android-verify-abi-in-ndk' into release-3.19
5c2f9e3eeb Android: Fatal if ABI is not supported by NDK Acked-by: Kitware Robot <kwrobot@kitware.com> Merge-request: !5351
Diffstat (limited to 'Modules')
-rw-r--r--Modules/Platform/Android-Determine.cmake6
1 files changed, 6 insertions, 0 deletions
diff --git a/Modules/Platform/Android-Determine.cmake b/Modules/Platform/Android-Determine.cmake
index 314d80b..58905df 100644
--- a/Modules/Platform/Android-Determine.cmake
+++ b/Modules/Platform/Android-Determine.cmake
@@ -353,6 +353,12 @@ if(NOT CMAKE_ANDROID_ARCH_ABI)
endif()
endif()
endif()
+if(_INCLUDED_ABIS AND NOT CMAKE_ANDROID_ARCH_ABI IN_LIST NDK_DEFAULT_ABIS)
+ message(FATAL_ERROR
+ "Android: ABI '${CMAKE_ANDROID_ARCH_ABI}' is not supported by the NDK.\n"
+ "Supported ABIS: ${NDK_DEFAULT_ABIS}."
+ )
+endif()
set(CMAKE_ANDROID_ARCH "${_ANDROID_ABI_${CMAKE_ANDROID_ARCH_ABI}_ARCH}")
if(_ANDROID_SYSROOT_ARCH AND NOT "x${_ANDROID_SYSROOT_ARCH}" STREQUAL "x${CMAKE_ANDROID_ARCH}")
message(FATAL_ERROR