Now checking for android command in SDK subdirectory.
This commit is contained in:
parent
71992acd56
commit
c5f3171584
@ -42,10 +42,8 @@ if(ANDROID_BUILD_JAVA)
|
||||
endif()
|
||||
endif(ANDROID_BUILD_JAVA)
|
||||
|
||||
SET(CMAKE_FIND_ROOT_PATH_MODE_PROGRAM BOTH)
|
||||
find_program(ANDROID_COMMAND android)
|
||||
SET(CMAKE_FIND_ROOT_PATH_MODE_PROGRAM ONLY)
|
||||
if(ANDROID_COMMAND STREQUAL "ANDROID_COMMAND-NOTFOUND")
|
||||
set(ANDROID_COMMAND "${ANDROID_SDK}/tools/android")
|
||||
if(NOT EXISTS ${ANDROID_COMMAND})
|
||||
message(FATAL_ERROR "android not found but required to build android java")
|
||||
endif()
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user