[cmake-developers] [CMake 0011574]: source_group command fails with empty group
Mantis Bug Tracker
mantis at public.kitware.com
Tue Dec 7 03:24:46 EST 2010
The following issue has been SUBMITTED.
======================================================================
http://public.kitware.com/Bug/view.php?id=11574
======================================================================
Reported By: Ofri Sadowsky
Assigned To:
======================================================================
Project: CMake
Issue ID: 11574
Category: CMake
Reproducibility: always
Severity: minor
Priority: normal
Status: new
======================================================================
Date Submitted: 2010-12-07 03:24 EST
Last Modified: 2010-12-07 03:24 EST
======================================================================
Summary: source_group command fails with empty group
Description:
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.
Steps to Reproduce:
project(testproj CXX)
source_group("Parent Group" FILES "")
source_group("Parent Group\\Child" FILES "a.cpp")
add_library(testlib a.cpp)
======================================================================
Issue History
Date Modified Username Field Change
======================================================================
2010-12-07 03:24 Ofri Sadowsky New Issue
======================================================================
More information about the cmake-developers
mailing list