更新package.cmake,非debug模式下strip符号名

This commit is contained in:
yangwei
2019-05-06 18:32:46 +08:00
parent 3096c6e1e7
commit e7bb830c84

View File

@@ -23,9 +23,10 @@ set(CPACK_RPM_DEBUGINFO_PACKAGE on)
# Must uninstall the debug package before install release package
if(CMAKE_BUILD_TYPE STREQUAL "Debug")
set(CPACK_RPM_PACKAGE_CONFLICTS ${lib_name})
else()
set(CPACK_RPM_PACKAGE_CONFLICTS "${lib_name}-debug")
else()
set(CPACK_RPM_PACKAGE_CONFLICTS ${lib_name})
set(CPACK_STRIP_FILES TRUE)
endif()
include(CPack)