mirror of
https://github.com/Kitware/CMake.git
synced 2026-01-03 20:29:56 -06:00
cmake: List valid values for --trace-format on the command line
This commit is contained in:
@@ -751,7 +751,8 @@ void cmake::SetArgs(const std::vector<std::string>& args)
|
|||||||
const auto traceFormat =
|
const auto traceFormat =
|
||||||
StringToTraceFormat(arg.substr(strlen("--trace-format=")));
|
StringToTraceFormat(arg.substr(strlen("--trace-format=")));
|
||||||
if (traceFormat == TraceFormat::TRACE_UNDEFINED) {
|
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;
|
return;
|
||||||
}
|
}
|
||||||
this->SetTraceFormat(traceFormat);
|
this->SetTraceFormat(traceFormat);
|
||||||
|
|||||||
Reference in New Issue
Block a user