BUG: do not output empty depends

This commit is contained in:
Bill Hoffman 2002-12-10 13:59:53 -05:00
parent 238815fe19
commit 65032b816e
1 changed files with 8 additions and 8 deletions

View File

@ -100,18 +100,18 @@ cmLocalUnixMakefileGenerator::AddDependenciesToSourceFile(cmDependInformation co
visited->insert(info); visited->insert(info);
// add this dependency and the recurse // add this dependency and the recurse
if(info->m_FullPath != "") // now recurse with info's dependencies
for(cmDependInformation::DependencySet::const_iterator d =
info->m_DependencySet.begin();
d != info->m_DependencySet.end(); ++d)
{ {
// now recurse with info's dependencies if (visited->find(*d) == visited->end())
for(cmDependInformation::DependencySet::const_iterator d = {
info->m_DependencySet.begin(); if((*d)->m_FullPath != "")
d != info->m_DependencySet.end(); ++d)
{
if (visited->find(*d) == visited->end())
{ {
i->GetDepends().push_back((*d)->m_FullPath); i->GetDepends().push_back((*d)->m_FullPath);
this->AddDependenciesToSourceFile(*d,i,visited);
} }
this->AddDependenciesToSourceFile(*d,i,visited);
} }
} }
} }