mirror of
https://github.com/Kitware/CMake.git
synced 2026-01-08 14:50:10 -06:00
CTest: Add env var CLICOLOR to disable color output
Based on the implementation in Terminal.c:kwsysTerminalStreamIsVT100.
This commit is contained in:
committed by
Brad King
parent
e0b4a22ca6
commit
df0e50d756
@@ -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
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user