diff options
author | Brad King <brad.king@kitware.com> | 2019-08-27 14:54:15 (GMT) |
---|---|---|
committer | Kitware Robot <kwrobot@kitware.com> | 2019-08-27 14:54:24 (GMT) |
commit | d16402ddc4948a2a26ccdb9377c04d525fcb4f97 (patch) | |
tree | eba1255c8c8dfb641904f1d40fdc260b51a35c67 /Source/cmCTest.cxx | |
parent | 52a8fb2d532ca44ad9d995fc9c0d910177f594d2 (diff) | |
parent | 074a6a8cf668e748d6749ac30e58ce07179d5da8 (diff) | |
download | CMake-d16402ddc4948a2a26ccdb9377c04d525fcb4f97.zip CMake-d16402ddc4948a2a26ccdb9377c04d525fcb4f97.tar.gz CMake-d16402ddc4948a2a26ccdb9377c04d525fcb4f97.tar.bz2 |
Merge topic 'ctest-CLICOLOR_FORCE'
074a6a8cf6 CTest: Add env var CLICOLOR_FORCE to force color output
Acked-by: Kitware Robot <kwrobot@kitware.com>
Merge-request: !3733
Diffstat (limited to 'Source/cmCTest.cxx')
-rw-r--r-- | Source/cmCTest.cxx | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/Source/cmCTest.cxx b/Source/cmCTest.cxx index 14f0c0c..f51ed0b 100644 --- a/Source/cmCTest.cxx +++ b/Source/cmCTest.cxx @@ -2127,6 +2127,11 @@ bool cmCTest::ColoredOutputSupportedByConsole() return false; #else // On UNIX we need a non-dumb tty. + std::string clicolor_force; + if (cmSystemTools::GetEnv("CLICOLOR_FORCE", clicolor_force) && + !clicolor_force.empty() && clicolor_force != "0") { + return true; + } return ConsoleIsNotDumb(); #endif } |