summaryrefslogtreecommitdiffstats
path: root/Modules
diff options
context:
space:
mode:
authorBrad King <brad.king@kitware.com>2006-05-25 18:16:28 (GMT)
committerBrad King <brad.king@kitware.com>2006-05-25 18:16:28 (GMT)
commit81b778c07481c86723ddfd089a866a957aa4f6e2 (patch)
tree12add90b284ade3b6f2d9c4ca89a732e6fb20239 /Modules
parentff41664c6bf3ce91e155b08ef23f4f2e061ba857 (diff)
downloadCMake-81b778c07481c86723ddfd089a866a957aa4f6e2.zip
CMake-81b778c07481c86723ddfd089a866a957aa4f6e2.tar.gz
CMake-81b778c07481c86723ddfd089a866a957aa4f6e2.tar.bz2
ENH: Adding advanced option CMAKE_COLOR_MAKEFILE for makefile generators with default ON.
Diffstat (limited to 'Modules')
-rw-r--r--Modules/CMakeGenericSystem.cmake7
1 files changed, 7 insertions, 0 deletions
diff --git a/Modules/CMakeGenericSystem.cmake b/Modules/CMakeGenericSystem.cmake
index 5ec2501..efa6f2b 100644
--- a/Modules/CMakeGenericSystem.cmake
+++ b/Modules/CMakeGenericSystem.cmake
@@ -34,6 +34,13 @@ IF(CMAKE_GENERATOR MATCHES "KDevelop3")
ENDIF(CMAKE_GENERATOR MATCHES "KDevelop3")
SET(CMAKE_VERBOSE_MAKEFILE ${CMAKE_INIT_VALUE} CACHE BOOL "If this value is on, makefiles will be generated without the .SILENT directive, and all commands will be echoed to the console during the make. This is useful for debugging only. With Visual Studio IDE projects all commands are done without /nologo.")
+IF(CMAKE_GENERATOR MATCHES "Makefiles")
+ SET(CMAKE_COLOR_MAKEFILE ON CACHE BOOL
+ "Enable/Disable color output during build."
+ )
+ MARK_AS_ADVANCED(CMAKE_COLOR_MAKEFILE)
+ENDIF(CMAKE_GENERATOR MATCHES "Makefiles")
+
# Choose a default install prefix for this platform.
IF(UNIX)
SET(CMAKE_INSTALL_PREFIX "/usr/local"