From e7bb830c84c0d177eb21e9f9287fc8312137dab4 Mon Sep 17 00:00:00 2001 From: yangwei Date: Mon, 6 May 2019 18:32:46 +0800 Subject: [PATCH] =?UTF-8?q?=E6=9B=B4=E6=96=B0package.cmake=EF=BC=8C?= =?UTF-8?q?=E9=9D=9Edebug=E6=A8=A1=E5=BC=8F=E4=B8=8Bstrip=E7=AC=A6?= =?UTF-8?q?=E5=8F=B7=E5=90=8D?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- cmake/Package.cmake | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/cmake/Package.cmake b/cmake/Package.cmake index d455513..7c96e02 100644 --- a/cmake/Package.cmake +++ b/cmake/Package.cmake @@ -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)