Permalink
Browse files

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

  • Loading branch information...
baldurk committed Sep 25, 2018
1 parent 5b07a48 commit fb23f6ad1d68efd558127d96814a9c5ab340cb95
Showing with 3 additions and 0 deletions.
  1. +3 −0 renderdoccmd/CMakeLists.txt
@@ -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

0 comments on commit fb23f6a

Please sign in to comment.