(Android) Added the Android API level to a CMake build message

This commit is contained in:
Leon Styhre 2023-11-30 17:20:19 +01:00
parent 811118d3ee
commit e9457306a8

View file

@ -392,10 +392,10 @@ endif()
if(ANDROID) if(ANDROID)
if(ANDROID_ABI MATCHES arm64-v8a) if(ANDROID_ABI MATCHES arm64-v8a)
message("-- Building for Android arm64-v8a") message("-- Building for Android arm64-v8a on API level ${ANDROID_PLATFORM}")
set(ANDROID_CPU_ARCH arm64-v8a) set(ANDROID_CPU_ARCH arm64-v8a)
elseif(ANDROID_ABI MATCHES x86_64) elseif(ANDROID_ABI MATCHES x86_64)
message("-- Building for Android x86_64") message("-- Building for Android x86_64 on API level ${ANDROID_PLATFORM}")
set(ANDROID_CPU_ARCH x86_64) set(ANDROID_CPU_ARCH x86_64)
else() else()
message(FATAL_ERROR "-- Unsupported Android ABI: " ${ANDROID_ABI}) message(FATAL_ERROR "-- Unsupported Android ABI: " ${ANDROID_ABI})