diff --git a/lite/CMakeLists.txt b/lite/CMakeLists.txt index 5b676c9937baa7026d44ea5d9a03b6e8344af058..657b1ac82adeeceedc96dce259a523e7025ad527 100644 --- a/lite/CMakeLists.txt +++ b/lite/CMakeLists.txt @@ -186,6 +186,7 @@ if (LITE_WITH_LIGHT_WEIGHT_FRAMEWORK AND LITE_WITH_ARM) add_dependencies(publish_inference tiny_publish_cxx_lib) if(NOT "${CMAKE_BUILD_TYPE}" STREQUAL "Debug") add_custom_command(TARGET tiny_publish_cxx_lib POST_BUILD + COMMAND ${CMAKE_STRIP} "-s" ${INFER_LITE_PUBLISH_ROOT}/cxx/lib/libpaddle_api_light_bundled.a COMMAND ${CMAKE_STRIP} "-s" ${INFER_LITE_PUBLISH_ROOT}/cxx/lib/libpaddle_light_api_shared.so) endif() endif()