summaryrefslogtreecommitdiffstats
path: root/Source
diff options
context:
space:
mode:
authorBrad King <brad.king@kitware.com>2020-03-19 10:57:44 (GMT)
committerKitware Robot <kwrobot@kitware.com>2020-03-19 10:57:52 (GMT)
commit0586123ede37a1b9bc1e52a2d62bf3ff79f1dec5 (patch)
treed337388893f9eca48fb3465ac77e7d15e7f45174 /Source
parentd995be9ead29c2f970c789e831f7601b0654ee34 (diff)
parent1994f950fff32cfcc20823269e008a34bfe6acf0 (diff)
downloadCMake-0586123ede37a1b9bc1e52a2d62bf3ff79f1dec5.zip
CMake-0586123ede37a1b9bc1e52a2d62bf3ff79f1dec5.tar.gz
CMake-0586123ede37a1b9bc1e52a2d62bf3ff79f1dec5.tar.bz2
Merge topic 'trace-format-json-doc'
1994f950ff cmake: List valid values for --trace-format on the command line e39766d84a Help: Fix documentation of --trace-format parameter Acked-by: Kitware Robot <kwrobot@kitware.com> Merge-request: !4500
Diffstat (limited to 'Source')
-rw-r--r--Source/cmake.cxx3
1 files changed, 2 insertions, 1 deletions
diff --git a/Source/cmake.cxx b/Source/cmake.cxx
index 29ed61d..5f04ea3 100644
--- a/Source/cmake.cxx
+++ b/Source/cmake.cxx
@@ -759,7 +759,8 @@ void cmake::SetArgs(const std::vector<std::string>& args)
const auto traceFormat =
StringToTraceFormat(arg.substr(strlen("--trace-format=")));
if (traceFormat == TraceFormat::TRACE_UNDEFINED) {
- cmSystemTools::Error("Invalid format specified for --trace-format");
+ cmSystemTools::Error("Invalid format specified for --trace-format. "
+ "Valid formats are human, json-v1.");
return;
}
this->SetTraceFormat(traceFormat);