summaryrefslogtreecommitdiffstats
path: root/Source/cmcldeps.cxx
diff options
context:
space:
mode:
authorDubach, Joev <Joev.Dubach@nuance.com>2022-07-27 20:08:16 (GMT)
committerBrad King <brad.king@kitware.com>2022-07-27 20:51:15 (GMT)
commit9dbcfb8fdd3d98080bc658846d4ed50d990736c1 (patch)
tree9cff9c394ea33e50b5d4d56bd7d2cea37338c65b /Source/cmcldeps.cxx
parentf44b79ad9bc24e84eabbf104f8a99c948dbaf326 (diff)
downloadCMake-9dbcfb8fdd3d98080bc658846d4ed50d990736c1.zip
CMake-9dbcfb8fdd3d98080bc658846d4ed50d990736c1.tar.gz
CMake-9dbcfb8fdd3d98080bc658846d4ed50d990736c1.tar.bz2
MSVC: Recognize -XYZ as well as /XYZ when parsing MS tool command lines
Fixes: #23772
Diffstat (limited to 'Source/cmcldeps.cxx')
-rw-r--r--Source/cmcldeps.cxx1
1 files changed, 1 insertions, 0 deletions
diff --git a/Source/cmcldeps.cxx b/Source/cmcldeps.cxx
index 8921aa0..69eb19e 100644
--- a/Source/cmcldeps.cxx
+++ b/Source/cmcldeps.cxx
@@ -273,6 +273,7 @@ int main()
std::string clrest = rest;
// rc: /fo x.dir\x.rc.res -> cl: /out:x.dir\x.rc.res.dep.obj
clrest = replace(clrest, "/fo ", "/out:");
+ clrest = replace(clrest, "-fo ", "-out:");
clrest = replace(clrest, objfile, objfile + ".dep.obj ");
cl = "\"" + cl + "\" /P /DRC_INVOKED /TC ";