From 81b778c07481c86723ddfd089a866a957aa4f6e2 Mon Sep 17 00:00:00 2001 From: Brad King Date: Thu, 25 May 2006 14:16:28 -0400 Subject: ENH: Adding advanced option CMAKE_COLOR_MAKEFILE for makefile generators with default ON. --- Modules/CMakeGenericSystem.cmake | 7 +++++++ 1 file changed, 7 insertions(+) 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" -- cgit v0.12