Commit 12c5f0fa authored by Bill Hoffman's avatar Bill Hoffman
Browse files

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

parent 142119be
......@@ -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;
......
......@@ -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 = ";
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment