diff options
author | Bill Hoffman <bill.hoffman@kitware.com> | 2002-02-18 19:09:03 (GMT) |
---|---|---|
committer | Bill Hoffman <bill.hoffman@kitware.com> | 2002-02-18 19:09:03 (GMT) |
commit | 12c5f0fa26ab3b90d13cd872ca7f0ea582e1cebc (patch) | |
tree | 8ba1e55adcb81bc0a2cd14897f0c5a047ee5489a | |
parent | 142119be9535ae1ef109595fdd83c0d929133834 (diff) | |
download | CMake-12c5f0fa26ab3b90d13cd872ca7f0ea582e1cebc.zip CMake-12c5f0fa26ab3b90d13cd872ca7f0ea582e1cebc.tar.gz CMake-12c5f0fa26ab3b90d13cd872ca7f0ea582e1cebc.tar.bz2 |
ENH: fix for borland tlib files with dash in them problem.
-rw-r--r-- | Source/cmBorlandMakefileGenerator.cxx | 2 | ||||
-rw-r--r-- | Source/cmUnixMakefileGenerator.cxx | 15 |
2 files changed, 16 insertions, 1 deletions
diff --git a/Source/cmBorlandMakefileGenerator.cxx b/Source/cmBorlandMakefileGenerator.cxx index f8f0a9a..01fae24 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 9e78f77..f3b0487 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 = "; |