summaryrefslogtreecommitdiff
path: root/Modules/CMakeGenericSystem.cmake
diff options
context:
space:
mode:
authorBrad King <brad.king@kitware.com>2009-03-16 16:22:19 -0400
committerBrad King <brad.king@kitware.com>2009-03-16 16:22:19 -0400
commit2f651c2e59d4b4fcb46ac6ad293332db99f430f3 (patch)
tree54474c321bc5ff0381ad70bc419a2e3e8bc41ac1 /Modules/CMakeGenericSystem.cmake
parent741ae600c411f9226b5e44dfd7319741987d5181 (diff)
downloadcmake-2f651c2e59d4b4fcb46ac6ad293332db99f430f3.tar.gz
ENH: Allow projects to disable per-rule progress
This creates global property RULE_PROGRESS which can be set to disbale per-rule progress reporting. On Windows, progress reports may cause a noticable delay due to the cost of starting an extra process. This feature will allow scripted builds to avoid the cost since they do not need detailed progress anyway. See issue #8726.
Diffstat (limited to 'Modules/CMakeGenericSystem.cmake')
-rw-r--r--Modules/CMakeGenericSystem.cmake3
1 files changed, 3 insertions, 0 deletions
diff --git a/Modules/CMakeGenericSystem.cmake b/Modules/CMakeGenericSystem.cmake
index 2599f2b261..72711148fc 100644
--- a/Modules/CMakeGenericSystem.cmake
+++ b/Modules/CMakeGenericSystem.cmake
@@ -33,6 +33,9 @@ IF(CMAKE_GENERATOR MATCHES "Makefiles")
"Enable/Disable color output during build."
)
MARK_AS_ADVANCED(CMAKE_COLOR_MAKEFILE)
+ IF(DEFINED CMAKE_RULE_PROGRESS)
+ SET_PROPERTY(GLOBAL PROPERTY RULE_PROGRESS ${CMAKE_RULE_PROGRESS})
+ ENDIF(DEFINED CMAKE_RULE_PROGRESS)
ENDIF(CMAKE_GENERATOR MATCHES "Makefiles")
# Set a variable to indicate whether the value of CMAKE_INSTALL_PREFIX