fix for bad assumption on custom rules
This commit is contained in:
parent
40a985a38d
commit
6309da4242
|
@ -680,11 +680,16 @@ void cmLocalVisualStudio7Generator::WriteVCProjFile(std::ostream& fout,
|
|||
// add in the library depends for cusotm targets
|
||||
if (target.GetType() == cmTarget::UTILITY)
|
||||
{
|
||||
cmCustomCommand &c = target.GetPostBuildCommands()[0];
|
||||
for (std::vector<std::string>::iterator i = c.GetDepends().begin();
|
||||
i != c.GetDepends().end(); ++i)
|
||||
for (std::vector<cmCustomCommand>::iterator ic =
|
||||
target.GetPostBuildCommands().begin();
|
||||
ic != target.GetPostBuildCommands().end(); ++ic)
|
||||
{
|
||||
srcFilesToProcess.push(*i);
|
||||
cmCustomCommand &c = *ic;
|
||||
for (std::vector<std::string>::iterator i = c.GetDepends().begin();
|
||||
i != c.GetDepends().end(); ++i)
|
||||
{
|
||||
srcFilesToProcess.push(*i);
|
||||
}
|
||||
}
|
||||
}
|
||||
while (!srcFilesToProcess.empty())
|
||||
|
@ -731,7 +736,7 @@ void cmLocalVisualStudio7Generator::WriteVCProjFile(std::ostream& fout,
|
|||
}
|
||||
else
|
||||
{
|
||||
srcFilesToProcess.push(dep);
|
||||
srcFilesToProcess.push(outsf->GetCustomCommand()->GetDepends()[i]);
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue