Fixed Android target setup for OpenCv library project

pull/13383/head
Andrey Kamaev 13 years ago
parent ab2ae86e86
commit 4525ce56c3
  1. 2
      modules/java/CMakeLists.txt

@ -218,7 +218,7 @@ if(ANDROID)
if (ANT_EXECUTABLE AND ANDROID_EXECUTABLE AND ANDROID_TOOLS_Pkg_Revision GREATER 13)
add_custom_command(
TARGET ${target}
COMMAND ${ANDROID_EXECUTABLE} update lib-project --path "${CMAKE_BINARY_DIR}"
COMMAND ${ANDROID_EXECUTABLE} update lib-project --target "${ANDROID_SDK_TARGET}" --path "${CMAKE_BINARY_DIR}"
COMMAND ${ANT_EXECUTABLE} debug
WORKING_DIRECTORY "${CMAKE_BINARY_DIR}"
DEPENDS ${lib_target}

Loading…
Cancel
Save