MantisBT - CMake
View Issue Details
0013688CMakeCMakepublic2012-11-16 06:192013-03-05 09:32
Mike Gelfand 
Alex Neundorf 
normalfeaturealways
closedfixed 
CMake 2.8.10.1 
CMake 2.8.11CMake 2.8.11 
0013688: No way to specify target properties for AUTOMOC-generated targets
AUTOMOC targets (${PROJECT_NAME}_automoc) are being generated after configuration stage, so any attempt to set target properties on those targets fails. Would be nice to have a way to be able to change at least the FOLDER property, or (alternatively) to inherit FOLDER property from source target (the one having the AUTOMOC property).
No tags attached.
related to 0013788closed Alex Neundorf Hide Automoc Targets in Visual Studio projects 
patch a.patch (1,455) 2012-11-16 15:24
https://public.kitware.com/Bug/file/4568/a.patch
Issue History
2012-11-16 06:19Mike GelfandNew Issue
2012-11-16 14:43Alex NeundorfAssigned To => Alex Neundorf
2012-11-16 14:43Alex NeundorfStatusnew => assigned
2012-11-16 15:24Mike GelfandFile Added: a.patch
2012-11-16 15:25Mike GelfandNote Added: 0031582
2012-11-17 09:28Alex NeundorfNote Added: 0031593
2012-11-17 09:45Mike GelfandNote Added: 0031594
2012-11-17 13:05Alex NeundorfNote Added: 0031597
2012-11-17 13:05Alex NeundorfStatusassigned => closed
2012-11-17 13:05Alex NeundorfResolutionopen => fixed
2012-12-12 15:45Alex NeundorfRelationship addedrelated to 0013788
2012-12-12 15:47David ColeFixed in Version => CMake 2.8.11
2012-12-12 15:47David ColeTarget Version => CMake 2.8.11
2013-03-05 09:32johan andruejolRelationship addedparent of 0013984
2013-03-05 14:47johan andruejolRelationship deletedparent of 0013984

Notes
(0031582)
Mike Gelfand   
2012-11-16 15:25   
Uploaded a patch for the latter (quite simple) case.
(0031593)
Alex Neundorf   
2012-11-17 09:28   
This is to make the target appear in the same folder in VisualStudio as the target it belongs to ?
(0031594)
Mike Gelfand   
2012-11-17 09:45   
Yes. Otherwise the tree becomes kind of disorganized. In case you have a lot of projects, grouped together in a nice structure, all AUTOMOC targets end up in the root.
(0031597)
Alex Neundorf   
2012-11-17 13:05   
Thanks for the patch, I committed it, it is now in the cmake next branch and should be in 2.8.11.