summaryrefslogtreecommitdiffstats
path: root/Source/cmLocalVisualStudio6Generator.cxx
diff options
context:
space:
mode:
Diffstat (limited to 'Source/cmLocalVisualStudio6Generator.cxx')
-rw-r--r--Source/cmLocalVisualStudio6Generator.cxx13
1 files changed, 9 insertions, 4 deletions
diff --git a/Source/cmLocalVisualStudio6Generator.cxx b/Source/cmLocalVisualStudio6Generator.cxx
index 23eb7a6..41a60b8 100644
--- a/Source/cmLocalVisualStudio6Generator.cxx
+++ b/Source/cmLocalVisualStudio6Generator.cxx
@@ -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())