try_compile: Fix quotes in reporting of unknown arguments

In commit 6b427d8da9 (cmCoreTryCompile: Port to cmArgumentParser,
2022-08-01) we inadvertently dropped a matching quote during refactoring
of reporting unknown arguments given to try_compile/try_run.  Add the
missing quote to match the old behavior and not have an imbalanced quote
in the warning.
This commit is contained in:
Matthew Woehlke
2022-08-17 13:46:54 -04:00
committed by Brad King
parent 409e77aea8
commit 24c83bb35b

View File

@@ -165,7 +165,7 @@ Arguments cmCoreTryCompile::ParseArgs(
!unparsedArguments.empty()) {
std::string m = "Unknown arguments:";
for (const auto& i : unparsedArguments) {
m = cmStrCat(m, "\n ", i, "\"");
m = cmStrCat(m, "\n \"", i, "\"");
}
this->Makefile->IssueMessage(MessageType::AUTHOR_WARNING, m);
}