summaryrefslogtreecommitdiffstats
path: root/Tests/RunCMake/CPack/DEBUGINFO.cmake
diff options
context:
space:
mode:
authorBrad King <brad.king@kitware.com>2016-09-27 12:23:03 (GMT)
committerCMake Topic Stage <kwrobot@kitware.com>2016-09-27 12:23:03 (GMT)
commit1adcf4917e86fadcaf49ed5ad19d9f353febad53 (patch)
tree863cebc03cceb2f087379bf1b291544b59454052 /Tests/RunCMake/CPack/DEBUGINFO.cmake
parenta9cb60a9513531c7f8e50bc0e81683ad4008f84d (diff)
parent39c7d62cbc130cd8b08884349b8d12bd1a86938f (diff)
downloadCMake-1adcf4917e86fadcaf49ed5ad19d9f353febad53.zip
CMake-1adcf4917e86fadcaf49ed5ad19d9f353febad53.tar.gz
CMake-1adcf4917e86fadcaf49ed5ad19d9f353febad53.tar.bz2
Merge topic 'cpack-rpm-debuginfo-sources'
39c7d62c CPack/RPM debuginfo packaging documentation dd3c938a CPack/RPM debuginfo directories to sources b78fcf0d CPack/RPM debuginfo packages must contain sources
Diffstat (limited to 'Tests/RunCMake/CPack/DEBUGINFO.cmake')
-rw-r--r--Tests/RunCMake/CPack/DEBUGINFO.cmake8
1 files changed, 8 insertions, 0 deletions
diff --git a/Tests/RunCMake/CPack/DEBUGINFO.cmake b/Tests/RunCMake/CPack/DEBUGINFO.cmake
index 2a65b7f..d98b682 100644
--- a/Tests/RunCMake/CPack/DEBUGINFO.cmake
+++ b/Tests/RunCMake/CPack/DEBUGINFO.cmake
@@ -1,5 +1,11 @@
set(CMAKE_BUILD_WITH_INSTALL_RPATH 1)
+# PGI compiler doesn't add build id to binaries by default
+if(CMAKE_CXX_COMPILER_ID STREQUAL "PGI")
+ string(APPEND CMAKE_EXE_LINKER_FLAGS "-Wl,--build-id")
+ string(APPEND CMAKE_SHARED_LINKER_FLAGS "-Wl,--build-id")
+endif()
+
set(CPACK_RPM_COMPONENT_INSTALL "ON")
set(CMAKE_BUILD_TYPE Debug)
@@ -23,4 +29,6 @@ set(CPACK_RPM_APPLICATIONS_FILE_NAME "RPM-DEFAULT")
set(CPACK_RPM_APPLICATIONS_DEBUGINFO_PACKAGE ON)
set(CPACK_RPM_LIBS_DEBUGINFO_PACKAGE ON)
+set(CPACK_RPM_BUILD_SOURCE_DIRS_PREFIX "/src")
+
set(CPACK_PACKAGE_NAME "debuginfo")