Added in version 3.24.
Enable color diagnostics throughout.
This variable uses three states: ON, OFF and not defined.
When not defined:
CMAKE_COLOR_MAKEFILE variable to ON. It controls color buildsystem messages.When ON:
CMAKE_COLOR_MAKEFILE is not initialized, but may be explicitly set to OFF to disable color buildsystem messages.-fcolor-diagnostics).When OFF:
CMAKE_COLOR_MAKEFILE is not initialized, but may be explicitly set to ON to enable color buildsystem messages.-fno-color-diagnostics).If the CMAKE_COLOR_DIAGNOSTICS environment variable is set, its value is used. Otherwise, CMAKE_COLOR_DIAGNOSTICS is not defined by default.
© 2000–2024 Kitware, Inc. and Contributors
Licensed under the BSD 3-clause License.
https://cmake.org/cmake/help/v3.31/variable/CMAKE_COLOR_DIAGNOSTICS.html