MantisBT - CMake
View Issue Details
0011574CMakeCMakepublic2010-12-07 03:242016-06-10 14:31
Ofri Sadowsky 
Kitware Robot 
normalminoralways
closedmoved 
PCWindows 7 x64
CMake-2-8 
 
0011574: source_group command fails with empty group
Using: Microsoft Visual Studio (2008, 2010, ...)

The source_group command fails if the group contains no files. This looks almost like a correct behavior: who needs an empty group? The trouble is when I try to create a group with no files of its own, but with subgroups that do have files. In this case, the super- and subgroups are not created, and the files are just added to the containing project/group.

A better behavior is to create the group whenever, even if empty, or when it has children, even if no file children.
project(testproj CXX)

source_group("Parent Group" FILES "")
source_group("Parent Group\\Child" FILES "a.cpp")
add_library(testlib a.cpp)
No tags attached.
Issue History
2010-12-07 03:24Ofri SadowskyNew Issue
2010-12-15 12:23David ColeAssigned To => David Cole
2010-12-15 12:23David ColeStatusnew => assigned
2012-08-13 15:16David ColeStatusassigned => backlog
2012-08-13 15:16David ColeNote Added: 0030611
2012-08-13 15:17David ColeAssigned ToDavid Cole =>
2016-06-10 14:28Kitware RobotNote Added: 0041768
2016-06-10 14:28Kitware RobotStatusbacklog => resolved
2016-06-10 14:28Kitware RobotResolutionopen => moved
2016-06-10 14:28Kitware RobotAssigned To => Kitware Robot
2016-06-10 14:31Kitware RobotStatusresolved => closed

Notes
(0030611)
David Cole   
2012-08-13 15:16   
Sending old, not-recently-updated issues to the backlog.

(The age of the bug alone means that nobody is actively working on it...)

If an issue you care about is sent to the backlog when you feel it should have been addressed in a different manner, please bring it up on the CMake mailing list for discussion. Sign up for the mailing list here, if you're not already on it: http://www.cmake.org/mailman/listinfo/cmake [^]

It's easy to re-activate a bug here if you can find a CMake developer who has the bandwidth to take it on, and ferry a fix through to our 'next' branch for dashboard testing.
(0041768)
Kitware Robot   
2016-06-10 14:28   
Resolving issue as `moved`.

This issue tracker is no longer used. Further discussion of this issue may take place in the current CMake Issues page linked in the banner at the top of this page.