Commit 50a1f8a5 authored by Ken Martin's avatar Ken Martin

minor fixes

parent 079e8469
......@@ -799,23 +799,23 @@ void cmLocalUnixMakefileGenerator::OutputUtilityRule(std::ostream& fout,
std::string comment = "Rule to build Utility ";
comment += name;
std::string depends;
std::string replaceVars;
const std::vector<cmCustomCommand> &ccs = t.GetCustomCommands();
for(std::vector<cmCustomCommand>::const_iterator i = ccs.begin();
i != ccs.end(); ++i)
{
const std::vector<std::string> & dep = i->GetDepends();
for(std::vector<std::string>::const_iterator d = dep.begin();
d != dep.end(); ++d)
{
depends += " \\\n";
depends += *d;
}
const std::vector<std::string> & dep = i->GetDepends();
for(std::vector<std::string>::const_iterator d = dep.begin();
d != dep.end(); ++d)
{
depends += " \\\n";
replaceVars = *d;
m_Makefile->ExpandVariablesInString(replaceVars);
depends += this->ConvertToOutputPath(replaceVars.c_str());
}
}
this->OutputMakeRule(fout,
comment.c_str(),
name,
depends.c_str(),
cc);
this->OutputMakeRule(fout, comment.c_str(), name,
depends.c_str(), cc);
}
......
Markdown is supported
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