CLICOLOR — CMake 4.1.4 Documentation

# CLICOLOR

Added in version 3.21.

This is a CMake Environment Variable. Its initial value is taken from the calling process environment.

Set to `0` to tell command-line tools not to print color messages even if connected to a terminal. This is a common convention among command-line tools in general.

See also the `NO_COLOR` and `CLICOLOR_FORCE` environment variables. If either of them is activated, it takes precedence over `CLICOLOR`.

See the `CMAKE_COLOR_DIAGNOSTICS` variable to control color in a generated build system.