View Issue Details Jump to Notes ] Print ]
IDProjectCategoryView StatusDate SubmittedLast Update
0011574CMakeCMakepublic2010-12-07 03:242016-06-10 14:31
ReporterOfri Sadowsky 
Assigned ToKitware Robot 
PrioritynormalSeverityminorReproducibilityalways
StatusclosedResolutionmoved 
PlatformPCOSWindows 7 x64OS Version
Product VersionCMake-2-8 
Target VersionFixed in Version 
Summary0011574: source_group command fails with empty group
DescriptionUsing: 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.
Steps To Reproduceproject(testproj CXX)

source_group("Parent Group" FILES "")
source_group("Parent Group\\Child" FILES "a.cpp")
add_library(testlib a.cpp)
TagsNo tags attached.
Attached Files

 Relationships

  Notes
(0030611)
David Cole (manager)
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 (administrator)
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.

 Issue History
Date Modified Username Field Change
2010-12-07 03:24 Ofri Sadowsky New Issue
2010-12-15 12:23 David Cole Assigned To => David Cole
2010-12-15 12:23 David Cole Status new => assigned
2012-08-13 15:16 David Cole Status assigned => backlog
2012-08-13 15:16 David Cole Note Added: 0030611
2012-08-13 15:17 David Cole Assigned To David Cole =>
2016-06-10 14:28 Kitware Robot Note Added: 0041768
2016-06-10 14:28 Kitware Robot Status backlog => resolved
2016-06-10 14:28 Kitware Robot Resolution open => moved
2016-06-10 14:28 Kitware Robot Assigned To => Kitware Robot
2016-06-10 14:31 Kitware Robot Status resolved => closed


Copyright © 2000 - 2018 MantisBT Team