Explorar o código

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

Bill Hoffman %!s(int64=20) %!d(string=hai) anos
pai
achega
129299f900
Modificáronse 1 ficheiros con 1 adicións e 1 borrados
  1. 1 1
      Source/cmLocalVisualStudio7Generator.cxx

+ 1 - 1
Source/cmLocalVisualStudio7Generator.cxx

@@ -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; 
     }