summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorHarry Mallon <harry@codexdigital.com>2016-07-11 18:53:31 (GMT)
committerBrad King <brad.king@kitware.com>2016-07-13 13:23:24 (GMT)
commit83799aa934615a932a181518a539150aa8cd43fd (patch)
treee70ea8a4095ff24d9f94aeb80ed3edb8a035965d
parent507aa256e517e33aa109b854b444b08863447cf4 (diff)
downloadCMake-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.cmake4
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()