From 65032b816e92bfaee704cee217cacea8778dc813 Mon Sep 17 00:00:00 2001 From: Bill Hoffman Date: Tue, 10 Dec 2002 13:59:53 -0500 Subject: [PATCH] BUG: do not output empty depends --- Source/cmLocalUnixMakefileGenerator.cxx | 16 ++++++++-------- 1 file changed, 8 insertions(+), 8 deletions(-) diff --git a/Source/cmLocalUnixMakefileGenerator.cxx b/Source/cmLocalUnixMakefileGenerator.cxx index d7dc51e9d..84305f787 100644 --- a/Source/cmLocalUnixMakefileGenerator.cxx +++ b/Source/cmLocalUnixMakefileGenerator.cxx @@ -100,18 +100,18 @@ cmLocalUnixMakefileGenerator::AddDependenciesToSourceFile(cmDependInformation co visited->insert(info); // 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 - for(cmDependInformation::DependencySet::const_iterator d = - info->m_DependencySet.begin(); - d != info->m_DependencySet.end(); ++d) - { - if (visited->find(*d) == visited->end()) + if (visited->find(*d) == visited->end()) + { + if((*d)->m_FullPath != "") { i->GetDepends().push_back((*d)->m_FullPath); - this->AddDependenciesToSourceFile(*d,i,visited); } + this->AddDependenciesToSourceFile(*d,i,visited); } } }