summaryrefslogtreecommitdiffstats
path: root/Source
diff options
context:
space:
mode:
authorKen Martin <ken.martin@kitware.com>2003-06-17 21:13:56 (GMT)
committerKen Martin <ken.martin@kitware.com>2003-06-17 21:13:56 (GMT)
commit6309da4242eb81017464174e69679e42f66f5d81 (patch)
tree6db667a46541ada6501d8daa63fd1a2f040657f6 /Source
parent40a985a38df5df6d91af557b8ec1e76df9dbc5e2 (diff)
downloadCMake-6309da4242eb81017464174e69679e42f66f5d81.zip
CMake-6309da4242eb81017464174e69679e42f66f5d81.tar.gz
CMake-6309da4242eb81017464174e69679e42f66f5d81.tar.bz2
fix for bad assumption on custom rules
Diffstat (limited to 'Source')
-rw-r--r--Source/cmLocalVisualStudio7Generator.cxx15
1 files changed, 10 insertions, 5 deletions
diff --git a/Source/cmLocalVisualStudio7Generator.cxx b/Source/cmLocalVisualStudio7Generator.cxx
index 56b3e91..8d88d98 100644
--- a/Source/cmLocalVisualStudio7Generator.cxx
+++ b/Source/cmLocalVisualStudio7Generator.cxx
@@ -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]);
}
}
}