summaryrefslogtreecommitdiffstats
path: root/Source/cmLocalUnixMakefileGenerator.cxx
diff options
context:
space:
mode:
authorBill Hoffman <bill.hoffman@kitware.com>2002-12-10 18:59:53 (GMT)
committerBill Hoffman <bill.hoffman@kitware.com>2002-12-10 18:59:53 (GMT)
commit65032b816e92bfaee704cee217cacea8778dc813 (patch)
tree9a6b952d95be6eae6ed01678771f7e27f65aff81 /Source/cmLocalUnixMakefileGenerator.cxx
parent238815fe19ebcd63bee841b69139824698e5fe95 (diff)
downloadCMake-65032b816e92bfaee704cee217cacea8778dc813.zip
CMake-65032b816e92bfaee704cee217cacea8778dc813.tar.gz
CMake-65032b816e92bfaee704cee217cacea8778dc813.tar.bz2
BUG: do not output empty depends
Diffstat (limited to 'Source/cmLocalUnixMakefileGenerator.cxx')
-rw-r--r--Source/cmLocalUnixMakefileGenerator.cxx18
1 files changed, 9 insertions, 9 deletions
diff --git a/Source/cmLocalUnixMakefileGenerator.cxx b/Source/cmLocalUnixMakefileGenerator.cxx
index d7dc51e..84305f7 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)
- {
- if (visited->find(*d) == visited->end())
+ // 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((*d)->m_FullPath != "")
{
i->GetDepends().push_back((*d)->m_FullPath);
- this->AddDependenciesToSourceFile(*d,i,visited);
}
+ this->AddDependenciesToSourceFile(*d,i,visited);
}
}
}