mirror of
https://github.com/Kitware/CMake.git
synced 2026-01-09 15:20:56 -06:00
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:
committed by
Brad King
parent
409e77aea8
commit
24c83bb35b
@@ -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);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user