mirror of
https://github.com/Kitware/CMake.git
synced 2026-02-16 20:21:41 -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 =
|
||||
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