Skip to content

Commit

Permalink
Add check for ANDROID_NDK, and error if not set when building android
Browse files Browse the repository at this point in the history
  • Loading branch information
baldurk committed Sep 25, 2018
1 parent 5b07a48 commit fb23f6a
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions renderdoccmd/CMakeLists.txt
Expand Up @@ -56,6 +56,9 @@ if(ANDROID)
if(NOT DEFINED ENV{ANDROID_SDK}) if(NOT DEFINED ENV{ANDROID_SDK})
message(FATAL_ERROR "ANDROID_SDK environment variable must be defined for Android build") message(FATAL_ERROR "ANDROID_SDK environment variable must be defined for Android build")
endif() 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") if(STRIP_ANDROID_LIBRARY AND CMAKE_STRIP AND CMAKE_BUILD_TYPE STREQUAL "Release")
add_custom_command(TARGET renderdoccmd POST_BUILD add_custom_command(TARGET renderdoccmd POST_BUILD
Expand Down

0 comments on commit fb23f6a

Please sign in to comment.