support ndk 19+

This commit is contained in:
PatriceJiang 2022-04-08 20:12:22 +08:00
parent e0a3e7bc34
commit ce6c0e8ee2
1 changed files with 1 additions and 1 deletions

View File

@ -40,7 +40,7 @@ endif()
message( STATUS "Building swappy_static to ${CMAKE_CURRENT_BINARY_DIR}/build" )
# Dex linking requires an extra option for later versions of clang lld
if (ANDROID_NDK_MAJOR GREATER 22)
if (ANDROID_NDK_MAJOR GREATER 18)
if ( ANDROID_NDK_ABI_NAME MATCHES "armeabi-v7a")
set (LINKER_TARGET_EMULATION_OPTION "-m" "armelf_linux_eabi")
elseif(ANDROID_NDK_ABI_NAME MATCHES "arm64-v8a")