Merge pull request #3253 from ajbeamon/backport-generate-debug-packages-flag
Backport the GENERATE_DEBUG_PACKAGES flag to 6.2
This commit is contained in:
commit
6fe054cd1a
|
@ -213,6 +213,12 @@ set(CPACK_PACKAGE_CHECKSUM SHA256)
|
||||||
configure_file("${CMAKE_SOURCE_DIR}/cmake/CPackConfig.cmake" "${CMAKE_BINARY_DIR}/packaging/CPackConfig.cmake")
|
configure_file("${CMAKE_SOURCE_DIR}/cmake/CPackConfig.cmake" "${CMAKE_BINARY_DIR}/packaging/CPackConfig.cmake")
|
||||||
set(CPACK_PROJECT_CONFIG_FILE "${CMAKE_BINARY_DIR}/packaging/CPackConfig.cmake")
|
set(CPACK_PROJECT_CONFIG_FILE "${CMAKE_BINARY_DIR}/packaging/CPackConfig.cmake")
|
||||||
|
|
||||||
|
################################################################################
|
||||||
|
# User config
|
||||||
|
################################################################################
|
||||||
|
|
||||||
|
set(GENERATE_DEBUG_PACKAGES "${FDB_RELEASE}" CACHE BOOL "Build debug rpm/deb packages (default: only ON for FDB_RELEASE)")
|
||||||
|
|
||||||
################################################################################
|
################################################################################
|
||||||
# Version information
|
# Version information
|
||||||
################################################################################
|
################################################################################
|
||||||
|
@ -334,7 +340,7 @@ set(CPACK_RPM_EXCLUDE_FROM_AUTO_FILELIST_ADDITION
|
||||||
"/lib/systemd"
|
"/lib/systemd"
|
||||||
"/lib/systemd/system"
|
"/lib/systemd/system"
|
||||||
"/etc/rc.d/init.d")
|
"/etc/rc.d/init.d")
|
||||||
set(CPACK_RPM_DEBUGINFO_PACKAGE ON)
|
set(CPACK_RPM_DEBUGINFO_PACKAGE ${GENERATE_DEBUG_PACKAGES})
|
||||||
#set(CPACK_RPM_BUILD_SOURCE_DIRS_PREFIX /usr/src)
|
#set(CPACK_RPM_BUILD_SOURCE_DIRS_PREFIX /usr/src)
|
||||||
set(CPACK_RPM_COMPONENT_INSTALL ON)
|
set(CPACK_RPM_COMPONENT_INSTALL ON)
|
||||||
|
|
||||||
|
@ -379,7 +385,7 @@ set(CPACK_RPM_SERVER-EL7_PACKAGE_REQUIRES
|
||||||
set(CPACK_DEBIAN_CLIENTS-DEB_FILE_NAME "${deb-clients-filename}_amd64.deb")
|
set(CPACK_DEBIAN_CLIENTS-DEB_FILE_NAME "${deb-clients-filename}_amd64.deb")
|
||||||
set(CPACK_DEBIAN_SERVER-DEB_FILE_NAME "${deb-server-filename}_amd64.deb")
|
set(CPACK_DEBIAN_SERVER-DEB_FILE_NAME "${deb-server-filename}_amd64.deb")
|
||||||
set(CPACK_DEB_COMPONENT_INSTALL ON)
|
set(CPACK_DEB_COMPONENT_INSTALL ON)
|
||||||
set(CPACK_DEBIAN_DEBUGINFO_PACKAGE ON)
|
set(CPACK_DEBIAN_DEBUGINFO_PACKAGE ${GENERATE_DEBUG_PACKAGES})
|
||||||
set(CPACK_DEBIAN_PACKAGE_SECTION "database")
|
set(CPACK_DEBIAN_PACKAGE_SECTION "database")
|
||||||
set(CPACK_DEBIAN_ENABLE_COMPONENT_DEPENDS ON)
|
set(CPACK_DEBIAN_ENABLE_COMPONENT_DEPENDS ON)
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue