更新package.cmake,非debug模式下strip符号名
This commit is contained in:
@@ -23,9 +23,10 @@ set(CPACK_RPM_DEBUGINFO_PACKAGE on)
|
|||||||
|
|
||||||
# Must uninstall the debug package before install release package
|
# Must uninstall the debug package before install release package
|
||||||
if(CMAKE_BUILD_TYPE STREQUAL "Debug")
|
if(CMAKE_BUILD_TYPE STREQUAL "Debug")
|
||||||
set(CPACK_RPM_PACKAGE_CONFLICTS ${lib_name})
|
|
||||||
else()
|
|
||||||
set(CPACK_RPM_PACKAGE_CONFLICTS "${lib_name}-debug")
|
set(CPACK_RPM_PACKAGE_CONFLICTS "${lib_name}-debug")
|
||||||
|
else()
|
||||||
|
set(CPACK_RPM_PACKAGE_CONFLICTS ${lib_name})
|
||||||
|
set(CPACK_STRIP_FILES TRUE)
|
||||||
endif()
|
endif()
|
||||||
|
|
||||||
include(CPack)
|
include(CPack)
|
||||||
|
|||||||
Reference in New Issue
Block a user