MantisBT - CMake
View Issue Details
0012472CMakeCMakepublic2011-09-21 09:592016-06-10 14:31
Tomasz Grobelny 
Alex Neundorf 
normalminorN/A
closedmoved 
x86WindowsXP
CMake 2.8.5 
 
0012472: cmake codeblocks should support source_group
> Is there any way to make cmake generate ‘<Option virtualFolder="Source
> Files" />’ element for Unit elements in CodeBlocks Project file (cbp)? I
> would expect it to happen by using 'SOURCE_GROUP("Source Files" FILES
> ${SOURCES})' construct but it does not work for me (should it?).
Open cmake project with source_group constructs using QtDesigner and see cbp file in build directory.
Implemented using attached patch.
No tags attached.
related to 0012335closed Alex Neundorf Codeblocks virt directory per target 
related to 0011959closed Alex Neundorf CMake does not write in defines into code::blocks projects files 
related to 0006498closed Alex Neundorf Codeblocks generated projects do not support compiling files individually 
diff cmake-codeblocks-sourcegroup-support.diff (1,442) 2011-09-21 09:59
https://public.kitware.com/Bug/file/4059/cmake-codeblocks-sourcegroup-support.diff
Issue History
2011-09-21 09:59Tomasz GrobelnyNew Issue
2011-09-21 09:59Tomasz GrobelnyFile Added: cmake-codeblocks-sourcegroup-support.diff
2011-09-22 00:34Alex NeundorfAssigned To => Alex Neundorf
2011-09-22 00:34Alex NeundorfStatusnew => assigned
2011-10-23 09:40Alex NeundorfRelationship addedrelated to 0012235
2011-10-23 09:41Alex NeundorfRelationship addedrelated to 0012335
2011-10-23 09:41Alex NeundorfRelationship deletedrelated to 0012235
2012-01-04 16:07Alex NeundorfRelationship addedrelated to 0011959
2012-01-04 16:14Alex NeundorfRelationship addedrelated to 0006498
2012-08-13 12:45Alex NeundorfStatusassigned => backlog
2012-09-13 14:12Luke KNote Added: 0031025
2014-10-24 07:46CedricNote Added: 0037071
2015-01-14 05:08RenéNote Added: 0037684
2016-06-10 14:28Kitware RobotNote Added: 0041905
2016-06-10 14:28Kitware RobotStatusbacklog => resolved
2016-06-10 14:28Kitware RobotResolutionopen => moved
2016-06-10 14:31Kitware RobotStatusresolved => closed

Notes
(0031025)
Luke K   
2012-09-13 14:12   
This is something that our development team needed as well. We applied the patch and it worked fine in 2.8.9 after we changed the cmMakefile::FindSourceGroups() signature to be const. Please consider incorporating this patch in to the next release of CMake.

Thanks,
Luke K

cmMakefile.h
@@ -697,7 +697,7 @@
   cmSourceGroup& FindSourceGroup(const char* source,
- std::vector<cmSourceGroup> &groups);
+ std::vector<cmSourceGroup> &groups) const;

cmMakefile.cxx
@@ -2620,7 +2620,7 @@
 cmSourceGroup&
 cmMakefile::FindSourceGroup(const char* source,
- std::vector<cmSourceGroup> &groups)
+ std::vector<cmSourceGroup> &groups) const
(0037071)
Cedric   
2014-10-24 07:46   
This problem seems to be present in cmake 3.0.2.
Any target release to be intergrated ?
(0037684)
René   
2015-01-14 05:08   
I think this is very helpful. Any chance this will be in an upcoming cmake release?
(0041905)
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.