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

This commit is contained in:
Bill Hoffman 2002-02-18 14:09:03 -05:00
parent 142119be95
commit 12c5f0fa26
2 changed files with 16 additions and 1 deletions

View File

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

View File

@ -378,6 +378,21 @@ void cmUnixMakefileGenerator::OutputTargetRules(std::ostream& fout)
} }
} }
fout << "\n\n"; 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 = "; fout << "CLEAN_OBJECT_FILES = ";