Browse Source

Merge topic 'cmcldeps-quote-rc' into release-3.28

03080d18eb cmcldeps: Restore support for rc.exe path not fully GetShortPathName-d

Acked-by: Kitware Robot <[email protected]>
Merge-request: !8912
Brad King 2 years ago
parent
commit
81dc8b9db8
1 changed files with 2 additions and 1 deletions
  1. 2 1
      Source/cmcldeps.cxx

+ 2 - 1
Source/cmcldeps.cxx

@@ -285,7 +285,8 @@ int main()
       return exit_code;
 
     // compile rc file with rc.exe
-    return process(srcfilename, "", objfile, prefix, binpath + " " + rest,
+    std::string rc = cmStrCat('"', binpath, '"');
+    return process(srcfilename, "", objfile, prefix, cmStrCat(rc, ' ', rest),
                    std::string(), true);
   }