summaryrefslogtreecommitdiffstats
path: root/Source
diff options
context:
space:
mode:
authorBrad King <brad.king@kitware.com>2022-10-19 13:59:48 (GMT)
committerKitware Robot <kwrobot@kitware.com>2022-10-19 14:00:00 (GMT)
commit6353f9b6d1464b10cf7112cb4790c2c4e3e472d5 (patch)
treec9fea3b7a225b8bde0ea4ec6990d80a634cf83b7 /Source
parentf327abb816e2a6ee40a8ac849fb702a21678ad12 (diff)
parent9777e4c30e55fb84c13727b322665f116fa49473 (diff)
downloadCMake-6353f9b6d1464b10cf7112cb4790c2c4e3e472d5.zip
CMake-6353f9b6d1464b10cf7112cb4790c2c4e3e472d5.tar.gz
CMake-6353f9b6d1464b10cf7112cb4790c2c4e3e472d5.tar.bz2
Merge topic 'mingw-unc'
9777e4c30e MinGW Makefiles: Quote UNC paths on command lines Acked-by: Kitware Robot <kwrobot@kitware.com> Acked-by: buildbot <buildbot@kitware.com> Merge-request: !7802
Diffstat (limited to 'Source')
-rw-r--r--Source/cmOutputConverter.cxx7
1 files changed, 7 insertions, 0 deletions
diff --git a/Source/cmOutputConverter.cxx b/Source/cmOutputConverter.cxx
index 6883535..299ab3a 100644
--- a/Source/cmOutputConverter.cxx
+++ b/Source/cmOutputConverter.cxx
@@ -527,6 +527,13 @@ bool cmOutputConverter::Shell_ArgumentNeedsQuotes(cm::string_view in,
}
}
+ /* UNC paths in MinGW Makefiles need quotes. */
+ if ((flags & Shell_Flag_MinGWMake) && (flags & Shell_Flag_Make)) {
+ if (in.size() > 1 && in[0] == '\\' && in[1] == '\\') {
+ return true;
+ }
+ }
+
return false;
}