View Issue Details Jump to Notes ] Print ]
IDProjectCategoryView StatusDate SubmittedLast Update
0012541CMakeCMakepublic2011-10-26 16:492011-12-16 17:22
ReporterJason Haslam 
Assigned ToAlex Neundorf 
PrioritynormalSeverityminorReproducibilityN/A
StatusclosedResolutionfixed 
PlatformOSOS Version
Product VersionCMake 2.8.6 
Target VersionCMake 2.8.7Fixed in VersionCMake 2.8.7 
Summary0012541: Missing option to pass flags to moc for AUTOMOC targets
DescriptionThe qt4_wrap_cpp() macro has an optional OPTIONS flag to allow passing extra flags to moc. The new AUTOMOC property seems to be missing equivalent functionality. Suggest adding a new AUTOMOC_OPTIONS or AUTOMOC_FLAGS (or similar) property for this purpose.
TagsNo tags attached.
Attached Files

 Relationships

  Notes
(0027695)
Alex Neundorf (developer)
2011-11-01 09:39

Can you please try the AddMocOptionsToAutomoc branch on cmake stage ?
http://cmake.org/gitweb?p=stage/cmake.git;a=shortlog;h=refs/heads/AddMocOptionsToAutomoc [^]

It has a new target property AUTOMOC_MOC_OPTIONS, which you can use to give extra options to moc.
This target property is initialized from the CMAKE_AUTOMOC_MOC_OPTIONS variable.

Please let me know whether this works for you.
(0027703)
Jason Haslam (reporter)
2011-11-01 12:36

Yes, it works fine for our use case. Thanks for adding this!
(0027704)
Alex Neundorf (developer)
2011-11-01 16:40

I merged it into next, should be in 2.8.7.

 Issue History
Date Modified Username Field Change
2011-10-26 16:49 Jason Haslam New Issue
2011-10-26 16:50 Alex Neundorf Assigned To => Alex Neundorf
2011-10-26 16:50 Alex Neundorf Status new => assigned
2011-11-01 09:39 Alex Neundorf Note Added: 0027695
2011-11-01 12:36 Jason Haslam Note Added: 0027703
2011-11-01 16:40 Alex Neundorf Note Added: 0027704
2011-11-01 16:40 Alex Neundorf Status assigned => closed
2011-11-01 16:40 Alex Neundorf Resolution open => fixed
2011-12-16 17:22 David Cole Fixed in Version => CMake 2.8.7
2011-12-16 17:22 David Cole Target Version => CMake 2.8.7


Copyright © 2000 - 2018 MantisBT Team