diff options
author | Brad King <brad.king@kitware.com> | 2016-07-13 13:26:44 (GMT) |
---|---|---|
committer | CMake Topic Stage <kwrobot@kitware.com> | 2016-07-13 13:26:44 (GMT) |
commit | 64095e36ee6b37e9118e2e3fbc30d0eee4d7a2d6 (patch) | |
tree | e67a9102c31daabadac0bf43a64b84654d956135 /Modules/CPackRPM.cmake | |
parent | 4b726a3f5c8c323baa029fa6a39bfbb31aeba65d (diff) | |
parent | 83799aa934615a932a181518a539150aa8cd43fd (diff) | |
download | CMake-64095e36ee6b37e9118e2e3fbc30d0eee4d7a2d6.zip CMake-64095e36ee6b37e9118e2e3fbc30d0eee4d7a2d6.tar.gz CMake-64095e36ee6b37e9118e2e3fbc30d0eee4d7a2d6.tar.bz2 |
Merge topic 'cpack-rpm-debug-logging-fix'
83799aa9 CPack/RPM: Debug logging should only print if requested for
Diffstat (limited to 'Modules/CPackRPM.cmake')
-rw-r--r-- | Modules/CPackRPM.cmake | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/Modules/CPackRPM.cmake b/Modules/CPackRPM.cmake index eeb21b7..0ce6486 100644 --- a/Modules/CPackRPM.cmake +++ b/Modules/CPackRPM.cmake @@ -859,7 +859,9 @@ function(cpack_rpm_prepare_content_list) if(NOT DEFINED CPACK_RPM_EXCLUDE_FROM_AUTO_FILELIST) set(CPACK_RPM_EXCLUDE_FROM_AUTO_FILELIST /etc /etc/init.d /usr /usr/share /usr/share/doc /usr/bin /usr/lib /usr/lib64 /usr/include) if(CPACK_RPM_EXCLUDE_FROM_AUTO_FILELIST_ADDITION) - message("CPackRPM:Debug: Adding ${CPACK_RPM_EXCLUDE_FROM_AUTO_FILELIST_ADDITION} to builtin omit list.") + if(CPACK_RPM_PACKAGE_DEBUG) + message("CPackRPM:Debug: Adding ${CPACK_RPM_EXCLUDE_FROM_AUTO_FILELIST_ADDITION} to builtin omit list.") + endif() list(APPEND CPACK_RPM_EXCLUDE_FROM_AUTO_FILELIST "${CPACK_RPM_EXCLUDE_FROM_AUTO_FILELIST_ADDITION}") endif() endif() |