mirror of
https://github.com/Kitware/CMake.git
synced 2026-01-06 05:40:54 -06:00
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
This commit is contained in:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user