ENH: fix for bug 2584, empty source groups with children skipped

This commit is contained in:
Bill Hoffman 2005-12-12 11:34:17 -05:00
parent b08a9e3508
commit 129299f900
1 changed files with 1 additions and 1 deletions

View File

@ -1016,7 +1016,7 @@ void cmLocalVisualStudio7Generator::WriteGroup(const cmSourceGroup *sg, cmTarget
const std::vector<const cmSourceFile *> &sourceFiles =
sg->GetSourceFiles();
// If the group is empty, don't write it at all.
if(sourceFiles.empty())
if(sourceFiles.empty() && sg->GetGroupChildren().empty())
{
return;
}