Merge topic 'cmcldeps-quote-rc'

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

Acked-by: Kitware Robot <kwrobot@kitware.com>
Merge-request: !8912
This commit is contained in:
Brad King
2023-10-24 12:28:57 +00:00
committed by Kitware Robot
+2 -1
View File
@@ -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);
}