From 24c83bb35b9747bd92dff40dd948b2bd90219833 Mon Sep 17 00:00:00 2001 From: Matthew Woehlke Date: Wed, 17 Aug 2022 13:46:54 -0400 Subject: 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. --- Source/cmCoreTryCompile.cxx | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Source/cmCoreTryCompile.cxx b/Source/cmCoreTryCompile.cxx index c2c3118..46ee8db 100644 --- a/Source/cmCoreTryCompile.cxx +++ b/Source/cmCoreTryCompile.cxx @@ -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); } -- cgit v0.12