mirror of
https://github.com/Kitware/CMake.git
synced 2026-04-23 22:58:37 -05:00
Merge topic 'trace-format-json-doc'
1994f950ffcmake: List valid values for --trace-format on the command linee39766d84aHelp: Fix documentation of --trace-format parameter Acked-by: Kitware Robot <kwrobot@kitware.com> Merge-request: !4500
This commit is contained in:
+2
-1
@@ -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);
|
||||
|
||||
Reference in New Issue
Block a user