MantisBT - CMake
View Issue Details
0015701CMakeModulespublic2015-08-17 05:042016-06-10 14:21
lehpat 
Alex Neundorf 
normalminoralways
closedfixed 
CMake 3.3 
CMake 3.6CMake 3.6 
0015701: Eclipse Generator does accept / as seperator in SOURCE_GROUP instead of \\
The documentation stats:
"The <name> of the group may contain backslashes to specify subgroups:

source_group(outer\\inner ...)"

This statement does not work using eclipse generator. This leads that the source_group statement is dependent on the used generator.


CMAKE-File:
SOURCE_GROUP("Source Files/foo" *.cpp)
SOURCE_GROUP("Source Files\\bar" *.cpp)

No tags attached.
Issue History
2015-08-17 05:04lehpatNew Issue
2015-08-18 09:12lehpatNote Added: 0039295
2015-08-30 16:49Alex NeundorfAssigned To => Alex Neundorf
2015-08-30 16:49Alex NeundorfStatusnew => assigned
2016-02-23 06:26ThiagoNote Added: 0040519
2016-02-24 04:54lehpatNote Added: 0040527
2016-03-29 10:56lehpatNote Added: 0040768
2016-03-31 09:34Brad KingNote Added: 0040775
2016-04-01 10:04Brad KingNote Added: 0040793
2016-04-01 10:04Brad KingStatusassigned => resolved
2016-04-01 10:04Brad KingResolutionopen => fixed
2016-04-01 10:04Brad KingFixed in Version => CMake 3.6
2016-04-01 10:04Brad KingTarget Version => CMake 3.6
2016-06-10 14:21Kitware RobotNote Added: 0041205
2016-06-10 14:21Kitware RobotStatusresolved => closed

Notes
(0039295)
lehpat   
2015-08-18 09:12   
I compared the .project files with seperator \\ and speerator /.
I could not found files from a virtual sub directory seperated with \\ in the project file, so I think the sub directory information is discarded somewhere.

I tried to modify cmExtraEclipseCDT4Generator.cxx before converting \\ to / resulting in identical .project files as with the original files.
(0040519)
Thiago   
2016-02-23 06:26   
Is it related to/a duplicate of https://cmake.org/Bug/view.php?id=12579 [^] ?
(0040527)
lehpat   
2016-02-24 04:54   
The two bugs seem to be related. I tried to reproduce the error in Linux (used Windows before) and I saw every file of the attached Project to ID 15279. So for me it looks like both issues are only affected on Windows.
(0040768)
lehpat   
2016-03-29 10:56   
Update: The two bugs are not related.
The current implementation of the eclipse Generator does not descend into children of the source group. If Source Groups with Sub directories are specified only the first Directory is created.
(0040775)
Brad King   
2016-03-31 09:34   
http://thread.gmane.org/gmane.comp.programming.tools.cmake.devel/16147 [^]
(0040793)
Brad King   
2016-04-01 10:04   
Patch from 0015701:0040775 applied:

Eclipse: Implement traversal of nested source groups
https://cmake.org/gitweb?p=cmake.git;a=commitdiff;h=4828a78c [^]
(0041205)
Kitware Robot   
2016-06-10 14:21   
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.