summaryrefslogtreecommitdiffstats
path: root/Source/cmLocalVisualStudio6Generator.cxx
diff options
context:
space:
mode:
authorKen Martin <ken.martin@kitware.com>2003-06-17 19:13:38 (GMT)
committerKen Martin <ken.martin@kitware.com>2003-06-17 19:13:38 (GMT)
commit7885db5eaf7b9fe4d38ee5158f1ffa114b0d713f (patch)
treea511d06a5e20346f1cba3288e46b7e955e59ea8a /Source/cmLocalVisualStudio6Generator.cxx
parentf76d01d56a48e1a00ea491681d219d547d3a7a94 (diff)
downloadCMake-7885db5eaf7b9fe4d38ee5158f1ffa114b0d713f.zip
CMake-7885db5eaf7b9fe4d38ee5158f1ffa114b0d713f.tar.gz
CMake-7885db5eaf7b9fe4d38ee5158f1ffa114b0d713f.tar.bz2
fix for bad assumption
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())