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
This commit is contained in:
Brad King
2020-03-19 10:57:44 +00:00
committed by Kitware Robot
2 changed files with 3 additions and 2 deletions
+2 -1
View File
@@ -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);