Fixed Android target setup for OpenCv library project

This commit is contained in:
Andrey Kamaev 2011-12-01 12:27:03 +00:00
parent ab2ae86e86
commit 4525ce56c3

View File

@ -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}