Skip to content

Commit

Permalink
Improve helpfulness of "API level not supported!"
Browse files Browse the repository at this point in the history
  • Loading branch information
rpavlik authored and JDFind committed Aug 27, 2017
1 parent 39719bb commit 3a345ad
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions android.toolchain.cmake
Original file line number Diff line number Diff line change
Expand Up @@ -798,6 +798,7 @@ unset(__real_api_level)
list( FIND ANDROID_SUPPORTED_NATIVE_API_LEVELS "${ANDROID_NATIVE_API_LEVEL}" __levelIdx )
if( __levelIdx EQUAL -1 )
message( SEND_ERROR "Specified Android native API level 'android-${ANDROID_NATIVE_API_LEVEL}' is not supported by your NDK/toolchain." )
message( STATUS "Supported levels: ${ANDROID_SUPPORTED_NATIVE_API_LEVELS}")
else()
if( BUILD_WITH_ANDROID_NDK )
__DETECT_NATIVE_API_LEVEL( __realApiLevel "${ANDROID_NDK}/platforms/android-${ANDROID_NATIVE_API_LEVEL}/arch-${ANDROID_ARCH_NAME}/usr/include/android/api-level.h" )
Expand Down

0 comments on commit 3a345ad

Please sign in to comment.