diff options
author | Harry Mallon <harry@codexdigital.com> | 2016-07-11 18:53:31 (GMT) |
---|---|---|
committer | Brad King <brad.king@kitware.com> | 2016-07-13 13:23:24 (GMT) |
commit | 83799aa934615a932a181518a539150aa8cd43fd (patch) | |
tree | e70ea8a4095ff24d9f94aeb80ed3edb8a035965d | |
parent | 507aa256e517e33aa109b854b444b08863447cf4 (diff) | |
download | CMake-83799aa934615a932a181518a539150aa8cd43fd.zip CMake-83799aa934615a932a181518a539150aa8cd43fd.tar.gz CMake-83799aa934615a932a181518a539150aa8cd43fd.tar.bz2 |
CPack/RPM: Debug logging should only print if requested for
-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 7706bbc..7a1cbef 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() |