Tweak strip flags for Android camera wrapper libs
authorAndrey Kamaev <andrey.kamaev@itseez.com>
Thu, 13 Sep 2012 16:27:03 +0000 (20:27 +0400)
committerAndrey Kamaev <andrey.kamaev@itseez.com>
Thu, 13 Sep 2012 16:28:25 +0000 (20:28 +0400)
modules/androidcamera/camera_wrapper/CMakeLists.txt

index b5cfbc1..21b9ee1 100644 (file)
@@ -59,7 +59,7 @@ SET_TARGET_PROPERTIES(${the_target} PROPERTIES
                       )
 
 if (NOT (CMAKE_BUILD_TYPE MATCHES "debug"))
-    ADD_CUSTOM_COMMAND( TARGET ${the_target} POST_BUILD COMMAND ${CMAKE_STRIP} "${LIBRARY_OUTPUT_PATH}/lib${the_target}.so" )
+    ADD_CUSTOM_COMMAND( TARGET ${the_target} POST_BUILD COMMAND ${CMAKE_STRIP} --strip-unneeded "${LIBRARY_OUTPUT_PATH}/lib${the_target}.so" )
 endif()