Browse Source

cmcmd: also forward rsp files in `.o` directories

Ben Boeckel 3 months ago
parent
commit
a3a190c006
1 changed files with 3 additions and 1 deletions
  1. 3 1
      Source/cmcmd.cxx

+ 3 - 1
Source/cmcmd.cxx

@@ -2260,7 +2260,9 @@ int cmcmd::VisualStudioLink(std::vector<std::string> const& args, int type,
   std::vector<std::string> expandedArgs;
   for (std::string const& i : args) {
     // check for nmake temporary files
-    if (i[0] == '@' && !cmHasLiteralPrefix(i, "@CMakeFiles")) {
+    if (i[0] == '@' &&
+        !(cmHasLiteralPrefix(i, "@CMakeFiles") ||
+          cmHasLiteralPrefix(i, "@.o/") || cmHasLiteralPrefix(i, "@.o\\"))) {
       cmsys::ifstream fin(i.substr(1).c_str());
       std::string line;
       while (cmSystemTools::GetLineFromStream(fin, line)) {