summaryrefslogtreecommitdiffstats
path: root/Source/cmCoreTryCompile.cxx
diff options
context:
space:
mode:
authorMatthew Woehlke <matthew.woehlke@kitware.com>2022-08-17 17:46:54 (GMT)
committerBrad King <brad.king@kitware.com>2022-08-17 19:44:29 (GMT)
commit24c83bb35b9747bd92dff40dd948b2bd90219833 (patch)
treebcbb0f6c28cba77ec104658815f2e0d0f8326230 /Source/cmCoreTryCompile.cxx
parent409e77aea8d073410472416335a487ca1a53ea04 (diff)
downloadCMake-24c83bb35b9747bd92dff40dd948b2bd90219833.zip
CMake-24c83bb35b9747bd92dff40dd948b2bd90219833.tar.gz
CMake-24c83bb35b9747bd92dff40dd948b2bd90219833.tar.bz2
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.
Diffstat (limited to 'Source/cmCoreTryCompile.cxx')
-rw-r--r--Source/cmCoreTryCompile.cxx2
1 files changed, 1 insertions, 1 deletions
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);
}