summaryrefslogtreecommitdiffstats
path: root/Source
diff options
context:
space:
mode:
authorBrad King <brad.king@kitware.com>2021-05-07 13:14:53 (GMT)
committerKitware Robot <kwrobot@kitware.com>2021-05-07 13:15:37 (GMT)
commiteac20afe9af631fbc7ea1b172e066875895077ce (patch)
treeb64e9a3f0fbb8ba575fd0bcbbaf309a0f881a761 /Source
parent7e0bec20a7d77b476496d0535b9e4c91d895b445 (diff)
parentdf0e50d756c4d4187a3b6fa20fc036669ea8c07c (diff)
downloadCMake-eac20afe9af631fbc7ea1b172e066875895077ce.zip
CMake-eac20afe9af631fbc7ea1b172e066875895077ce.tar.gz
CMake-eac20afe9af631fbc7ea1b172e066875895077ce.tar.bz2
Merge topic 'ctest-clicolor'
df0e50d756 CTest: Add env var CLICOLOR to disable color output Acked-by: Kitware Robot <kwrobot@kitware.com> Merge-request: !6076
Diffstat (limited to 'Source')
-rw-r--r--Source/cmCTest.cxx4
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
}