View Issue Details Jump to Notes ] Print ]
IDProjectCategoryView StatusDate SubmittedLast Update
0002584CMakeCMakepublic2005-12-10 01:342005-12-12 11:34
ReporterChristopher Lux 
Assigned ToBill Hoffman 
PriorityurgentSeveritymajorReproducibilityalways
StatusclosedResolutionfixed 
PlatformOSOS Version
Product Version 
Target VersionFixed in Version 
Summary0002584: empty SOURCE_GROUP with filled subgroup are ignored
Descriptionif a SOURCE_GROUP has no files attached, but has a sub group with attached files, the whole group is ignored and left out of the sln file. for example:

SOURCE_GROUP(source_files/console FILES ${core_console_SRC} ${core_console_HDR})
SOURCE_GROUP(source_files/filesystem FILES ${core_filesystem_SRC})

i also found the bug and did an fix for a local checkout. 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.
TagsNo tags attached.
Attached Files

 Relationships

  Notes
(0003390)
Christopher Lux (reporter)
2005-12-10 02:03

i have to add, that i use the following before the group definitions:

SET(SOURCE_GROUP_DELIMITER "/")
(0003397)
Bill Hoffman (manager)
2005-12-12 11:34

fixed in cvs.

 Issue History
Date Modified Username Field Change


Copyright © 2000 - 2018 MantisBT Team