summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorBill Hoffman <bill.hoffman@kitware.com>2002-02-18 14:09:03 -0500
committerBill Hoffman <bill.hoffman@kitware.com>2002-02-18 14:09:03 -0500
commit12c5f0fa26ab3b90d13cd872ca7f0ea582e1cebc (patch)
tree8ba1e55adcb81bc0a2cd14897f0c5a047ee5489a
parent142119be9535ae1ef109595fdd83c0d929133834 (diff)
downloadcmake-12c5f0fa26ab3b90d13cd872ca7f0ea582e1cebc.tar.gz
ENH: fix for borland tlib files with dash in them problem.
-rw-r--r--Source/cmBorlandMakefileGenerator.cxx2
-rw-r--r--Source/cmUnixMakefileGenerator.cxx15
2 files changed, 16 insertions, 1 deletions
diff --git a/Source/cmBorlandMakefileGenerator.cxx b/Source/cmBorlandMakefileGenerator.cxx
index f8f0a9a8e5..01fae24a3f 100644
--- a/Source/cmBorlandMakefileGenerator.cxx
+++ b/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;
diff --git a/Source/cmUnixMakefileGenerator.cxx b/Source/cmUnixMakefileGenerator.cxx
index 9e78f77ca6..f3b04871ed 100644
--- a/Source/cmUnixMakefileGenerator.cxx
+++ b/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 = ";