Use correct variable for API level in CMakeLists.txt + Improve arch detection
This commit is contained in:
parent
a375e5a881
commit
7de3bce82b
1 changed files with 5 additions and 5 deletions
|
|
@ -28,11 +28,11 @@ macro(avnc_check_libressl)
|
|||
endmacro()
|
||||
|
||||
|
||||
# Requred to enable SIMD support
|
||||
if (CMAKE_ANDROID_ARCH_ABI STREQUAL "arm64-v8a")
|
||||
set(CMAKE_ASM_FLAGS "${CMAKE_ASM_FLAGS} --target=aarch64-linux-android${ANDROID_VERSION}")
|
||||
elseif (CMAKE_ANDROID_ARCH_ABI MATCHES "^armeabi.*") # armeabi-v7a || armeabi-v6 || armeabi
|
||||
set(CMAKE_ASM_FLAGS "${CMAKE_ASM_FLAGS} --target=arm-linux-androideabi${ANDROID_VERSION}")
|
||||
# Requred to enable SIMD support on ARM
|
||||
if (CMAKE_ANDROID_ARCH STREQUAL "arm64")
|
||||
set(CMAKE_ASM_FLAGS "${CMAKE_ASM_FLAGS} --target=aarch64-linux-android${ANDROID_NATIVE_API_LEVEL}")
|
||||
elseif (CMAKE_ANDROID_ARCH STREQUAL "arm")
|
||||
set(CMAKE_ASM_FLAGS "${CMAKE_ASM_FLAGS} --target=arm-linux-androideabi${ANDROID_NATIVE_API_LEVEL}")
|
||||
endif ()
|
||||
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue