Browse Source

ENH: fix for borland tlib files with dash in them problem.

Bill Hoffman 24 years ago
parent
commit
12c5f0fa26
2 changed files with 16 additions and 1 deletions
  1. 1 1
      Source/cmBorlandMakefileGenerator.cxx
  2. 15 0
      Source/cmUnixMakefileGenerator.cxx

+ 1 - 1
Source/cmBorlandMakefileGenerator.cxx

@@ -303,7 +303,7 @@ void cmBorlandMakefileGenerator::OutputStaticLibraryRule(std::ostream& fout,
   deleteCommand += target;
 
   command += " $(";
-  command += std::string(name) + "_SRC_OBJS)";
+  command += std::string(name) + "_SRC_OBJS_QUOTED)";
   command += "\n|\n";
   std::string comment = "rule to build static library: ";
   comment += name;

+ 15 - 0
Source/cmUnixMakefileGenerator.cxx

@@ -378,6 +378,21 @@ void cmUnixMakefileGenerator::OutputTargetRules(std::ostream& fout)
               }
 	  }
 	fout << "\n\n";
+	fout << l->first << "_SRC_OBJS_QUOTED = ";
+	for(std::vector<cmSourceFile>::iterator i = classes.begin(); 
+	    i != classes.end(); i++)
+	  {
+	    if(!i->IsAHeaderFileOnly())
+	      {
+              std::string outExt(this->GetOutputExtension(i->GetSourceExtension().c_str()));
+              if(outExt.size())
+                {
+                fout << "\\\n\"" << this->ConvertToNativePath(i->GetSourceName().c_str())
+                     << outExt.c_str() << "\" ";
+                }
+              }
+	  }
+	fout << "\n\n";
       }
     }
   fout << "CLEAN_OBJECT_FILES = ";