Skip to content

CTest: Add env var CLICOLOR to disable color output

Martin Willers requested to merge mwillers/cmake:add-clicolor-support into master

These commits complete the color output control support. Previously, color output could only be forced ON by setting the environment variable CLICOLOR_FORCE to 1. With this commit, color output can also be disabled, by setting the environment variable CLICOLOR to 0. This can be useful e.g. for processing of build logs when the cmake run happens within a container (where isatty is true), but the processing happens on the outside.

See http://bixense.com/clicolors/ for documentation of this convention.

Topic-rename: ctest-clicolor

Edited by Brad King

Merge request reports