mirror of
https://github.com/Kitware/CMake.git
synced 2026-02-22 15:10:20 -06:00
color: Introduce CMAKE_COLOR_DIAGNOSTICS variable
Add a variable to control both makefile color messages and compiler color diagnostics. Fixes: #15502
This commit is contained in:
@@ -48,10 +48,11 @@ set (CMAKE_SKIP_INSTALL_RPATH "NO" CACHE BOOL
|
||||
set(CMAKE_VERBOSE_MAKEFILE FALSE 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 "Make")
|
||||
set(CMAKE_COLOR_MAKEFILE ON CACHE BOOL
|
||||
"Enable/Disable color output during build."
|
||||
)
|
||||
if(NOT DEFINED CMAKE_COLOR_DIAGNOSTICS)
|
||||
set(CMAKE_COLOR_MAKEFILE ON CACHE BOOL "Enable/Disable color output during build.")
|
||||
endif()
|
||||
mark_as_advanced(CMAKE_COLOR_MAKEFILE)
|
||||
|
||||
if(DEFINED CMAKE_RULE_MESSAGES)
|
||||
set_property(GLOBAL PROPERTY RULE_MESSAGES ${CMAKE_RULE_MESSAGES})
|
||||
endif()
|
||||
|
||||
Reference in New Issue
Block a user