summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorHarry Mallon <hjmallon@gmail.com>2019-04-30 09:46:57 (GMT)
committerHarry Mallon <hjmallon@gmail.com>2019-04-30 09:52:53 (GMT)
commitd9beea0ccacc8c3cdc14b71b660a73a458f09650 (patch)
treeb045c075f94623a588b52d93ba4527dbd3959d96
parent4eebc52eca3d551423d7e512284a3b71e13d30a0 (diff)
downloadCMake-d9beea0ccacc8c3cdc14b71b660a73a458f09650.zip
CMake-d9beea0ccacc8c3cdc14b71b660a73a458f09650.tar.gz
CMake-d9beea0ccacc8c3cdc14b71b660a73a458f09650.tar.bz2
CPackRPM: Hide CPACK_RPM_ROOTDIR debug if not CPACK_RPM_PACKAGE_DEBUG
-rw-r--r--Modules/Internal/CPack/CPackRPM.cmake4
1 files changed, 3 insertions, 1 deletions
diff --git a/Modules/Internal/CPack/CPackRPM.cmake b/Modules/Internal/CPack/CPackRPM.cmake
index 26b2517..ffb24e2 100644
--- a/Modules/Internal/CPack/CPackRPM.cmake
+++ b/Modules/Internal/CPack/CPackRPM.cmake
@@ -1158,7 +1158,9 @@ function(cpack_rpm_generate_package)
# Now we may create the RPM build tree structure
set(CPACK_RPM_ROOTDIR "${CPACK_TOPLEVEL_DIRECTORY}")
- message(STATUS "CPackRPM:Debug: Using CPACK_RPM_ROOTDIR=${CPACK_RPM_ROOTDIR}")
+ if(CPACK_RPM_PACKAGE_DEBUG)
+ message("CPackRPM:Debug: Using CPACK_RPM_ROOTDIR=${CPACK_RPM_ROOTDIR}")
+ endif()
# Prepare RPM build tree
file(MAKE_DIRECTORY ${CPACK_RPM_ROOTDIR})
file(MAKE_DIRECTORY ${CPACK_RPM_ROOTDIR}/tmp)