summaryrefslogtreecommitdiff
path: root/cmake
diff options
context:
space:
mode:
authoryangwei <[email protected]>2023-11-10 16:55:17 +0800
committeryangwei <[email protected]>2023-11-10 17:36:07 +0800
commitbc614c180a13afd288892a4b4b0b4dae337b4546 (patch)
tree14773bf3b111b231e5d822bd4f101414c653cc13 /cmake
parentf3b271b613cb0a733996fc2f57439cd36763381e (diff)
🐎 ci(test stage): fix test stagev1.0.0
Diffstat (limited to 'cmake')
-rw-r--r--cmake/Package.cmake11
1 files changed, 2 insertions, 9 deletions
diff --git a/cmake/Package.cmake b/cmake/Package.cmake
index b6265e3..e9ff57d 100644
--- a/cmake/Package.cmake
+++ b/cmake/Package.cmake
@@ -1,7 +1,7 @@
if(CMAKE_BUILD_TYPE STREQUAL "Debug")
- set(CPACK_PACKAGE_NAME "stellar-debug")
+ set(CPACK_PACKAGE_NAME ${PROJECT_NAME}-debug)
else()
- set(CPACK_PACKAGE_NAME "stellar")
+ set(CPACK_PACKAGE_NAME ${PROJECT_NAME})
endif()
message(STATUS "Package: ${CPACK_PACKAGE_NAME}")
@@ -25,13 +25,6 @@ set(CPACK_RPM_PRE_INSTALL_SCRIPT_FILE ${CMAKE_SOURCE_DIR}/cmake/PreInstall.in)
set(CPACK_RPM_PRE_UNINSTALL_SCRIPT_FILE ${CMAKE_SOURCE_DIR}/cmake/PreUninstall.in)
-# Must uninstall the debug package before install release package
-if(CMAKE_BUILD_TYPE STREQUAL "Debug")
- set(CPACK_RPM_PACKAGE_CONFLICTS ${PROJECT_NAME})
-else()
- set(CPACK_RPM_PACKAGE_CONFLICTS "${PROJECT_NAME}-debug")
-endif()
-
# Setup %config(noreplace)
# set(CPACK_RPM_USER_FILELIST "%config(noreplace) ${CMAKE_INSTALL_PREFIX}/conf/stellar/stellar.conf")
include(CPack)