[CMake] Bugfix for with SourceGroups Subfolders

Christopher Lux Christopher.Lux at gmx.net
Wed Dec 7 11:59:18 EST 2005


Hi,
i ran into a bug with sourcegroups with subfolders/groups. if the parent
group has no source files the while group with all children was not added to
the project file. the fix is as follows:

cmLocalVisualStudio7Generator.cxx:

line 1019 in cmLocalVisualStudio7Generator::WriteGroup(...)

change
  // If the group is empty, don't write it at all.
  if(sourceFiles.empty())
    { 
    return; 
    }
with this
  // If the group is empty, don't write it at all.
  if(sourceFiles.empty() && sg->GetGroupChildren().empty())
    { 
    return; 
    }

please build this into the new releases.

greets
-chris

-- 
10 GB Mailbox, 100 FreeSMS/Monat http://www.gmx.net/de/go/topmail
+++ GMX - die erste Adresse für Mail, Message, More +++


More information about the CMake mailing list