Commit 65032b81 authored by Bill Hoffman's avatar Bill Hoffman
Browse files

BUG: do not output empty depends

parent 238815fe
......@@ -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);
}
}
}
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment