[cmake-developers] [CMake 0013424]: SOURCE_GROUP creates empty groups in the same VS project
Mantis Bug Tracker
mantis at public.kitware.com
Thu Jul 19 07:41:30 EDT 2012
The following issue has been SUBMITTED.
======================================================================
http://www.cmake.org/Bug/view.php?id=13424
======================================================================
Reported By: corneliup
Assigned To:
======================================================================
Project: CMake
Issue ID: 13424
Category: CMake
Reproducibility: always
Severity: major
Priority: high
Status: new
======================================================================
Date Submitted: 2012-07-19 07:41 EDT
Last Modified: 2012-07-19 07:41 EDT
======================================================================
Summary: SOURCE_GROUP creates empty groups in the same VS
project
Description:
For the following lines extracted from the CMakeLists.txt
--------------------------------------------------------------------
source_group("Extra Headers L1\\Extra Headers L2\\Extra Headers L3")
source_group("Extra Headers")
--------------------------------------------------------------------
the following source group is created in the VS project
"Extra Headers L1\Extra Headers L2"
On the other hand, the "Extra Headers" source group is not created.
This behavior is neither consistent (one empty source group is created - most
likely because it is nested, another one is not created), nor as expected -
please see below.
Expected behavior: do not created nested source groups (or at least do not
display them in the VS project view), even if they are nested.
Steps to Reproduce:
- go on a Windows machine
- unzip attached file
- "chdir CMakeSourceGroup"
- "BuildProject.bat"
- open the generated solution file "build\CMakeSourceGroup.sln" and check the
"hey" project
Additional Information:
In addition to forbidding empty source groups, it would be great if the
SOURCE_GROUP command could also be associated to a specificied target (by adding
a TARGET parameter in the command) and not for all CMake targets (VS projects)
of the whole CMake project (VS solution).
======================================================================
Issue History
Date Modified Username Field Change
======================================================================
2012-07-19 07:41 corneliup New Issue
2012-07-19 07:41 corneliup File Added: CMakeSourceGroup.zip
======================================================================
More information about the cmake-developers
mailing list