Fix Android build with CMake 2.6.3-2.8.3

This commit is contained in:
Andrey Kamaev
2012-09-04 13:26:08 +04:00
parent 53d219c857
commit af415085d8
3 changed files with 11 additions and 7 deletions

View File

@@ -182,7 +182,7 @@ if(ANDROID)
# because samples and tests will make a copy of the library before install
get_target_property(__opencv_java_location ${the_module} LOCATION)
# Turn off stripping in debug build
if ( NOT (CMAKE_BUILD_TYPE MATCHES "debug"))
if ( NOT (CMAKE_BUILD_TYPE MATCHES "Debug"))
add_custom_command(TARGET ${the_module} POST_BUILD COMMAND ${CMAKE_STRIP} --strip-unneeded "${__opencv_java_location}")
endif()