diff options
Diffstat (limited to 'Source/cmCTest.cxx')
-rw-r--r-- | Source/cmCTest.cxx | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/Source/cmCTest.cxx b/Source/cmCTest.cxx index 79a3925..7534e37 100644 --- a/Source/cmCTest.cxx +++ b/Source/cmCTest.cxx @@ -2215,6 +2215,10 @@ bool cmCTest::ColoredOutputSupportedByConsole() !clicolor_force.empty() && clicolor_force != "0") { return true; } + std::string clicolor; + if (cmSystemTools::GetEnv("CLICOLOR", clicolor) && clicolor == "0") { + return false; + } return ConsoleIsNotDumb(); #endif } |