Skip to content
Snippets Groups Projects
Commit 7885db5e authored by Ken Martin's avatar Ken Martin
Browse files

fix for bad assumption

parent f76d01d5
No related branches found
No related tags found
No related merge requests found
......@@ -256,11 +256,16 @@ void cmLocalVisualStudio6Generator::WriteDSPFile(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())
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment