From 7885db5eaf7b9fe4d38ee5158f1ffa114b0d713f Mon Sep 17 00:00:00 2001 From: Ken Martin Date: Tue, 17 Jun 2003 15:13:38 -0400 Subject: [PATCH] fix for bad assumption --- Source/cmLocalVisualStudio6Generator.cxx | 13 +++++++++---- 1 file changed, 9 insertions(+), 4 deletions(-) diff --git a/Source/cmLocalVisualStudio6Generator.cxx b/Source/cmLocalVisualStudio6Generator.cxx index 23eb7a67a..41a60b803 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::iterator i = c.GetDepends().begin(); - i != c.GetDepends().end(); ++i) + for (std::vector::iterator ic = + target.GetPostBuildCommands().begin(); + ic != target.GetPostBuildCommands().end(); ++ic) { - srcFilesToProcess.push(*i); + cmCustomCommand &c = *ic; + for (std::vector::iterator i = c.GetDepends().begin(); + i != c.GetDepends().end(); ++i) + { + srcFilesToProcess.push(*i); + } } } while (!srcFilesToProcess.empty())