@@ -358,7 +358,7 @@ void cmLocalVisualStudio6Generator
sg->GetSourceFiles();
// If the group is empty, don't write it at all.
- if(sourceFiles.empty())
+ if(sourceFiles.empty() && sg->GetGroupChildren().empty())
{
return;
}