Add check for ANDROID_NDK, and error if not set when building android

This commit is contained in:
baldurk
2018-09-25 15:50:11 +01:00
parent 5b07a48479
commit fb23f6ad1d
+3
View File
@@ -56,6 +56,9 @@ if(ANDROID)
if(NOT DEFINED ENV{ANDROID_SDK})
message(FATAL_ERROR "ANDROID_SDK environment variable must be defined for Android build")
endif()
if(NOT DEFINED ENV{ANDROID_NDK})
message(FATAL_ERROR "ANDROID_NDK environment variable must be defined for Android build")
endif()
if(STRIP_ANDROID_LIBRARY AND CMAKE_STRIP AND CMAKE_BUILD_TYPE STREQUAL "Release")
add_custom_command(TARGET renderdoccmd POST_BUILD