View Issue Details Jump to Notes ] Print ]
IDProjectCategoryView StatusDate SubmittedLast Update
0013494CMakeCMakepublic2012-08-27 12:482012-10-24 17:28
ReporterStephen Kelly 
Assigned ToAlex Neundorf 
PrioritynormalSeverityminorReproducibilityalways
StatusclosedResolutionfixed 
PlatformOSOS Version
Product VersionCMake 2.8.10 
Target VersionCMake 2.8.10Fixed in VersionCMake 2.8.10 
Summary0013494: CMake AUTOMOC does not re-run moc if includes change
DescriptionIf the include directories change, then moc should be re-run, as they are passed to moc:

set(CMAKE_AUTOMOC ON)
set(CMAKE_INCLUDE_CURRENT_DIR ON)

# Commenting and uncommenting this should re-run moc on the
# affected files, but it does not.
include_directories("test/includes")

...

CMake does re-compile the moc file or the automoc target.

Commenting a use of add_definitions() does correctly cause moc to be run.
TagsNo tags attached.
Attached Files

 Relationships

  Notes
(0030778)
Stephen Kelly (developer)
2012-08-27 12:48

This is where my confusion in 0013492 came from :).
(0030779)
Alex Neundorf (developer)
2012-08-27 15:41

Thanks for repoting, this was so obvious I wonder how I missed this.
You can have a look at the AutomocRerunFix branch.
(0030780)
Stephen Kelly (developer)
2012-08-27 15:50

Thanks. It works for me.
(0030782)
Alex Neundorf (developer)
2012-08-27 16:11

Merged the AutomocRerunFix branch into next.

 Issue History
Date Modified Username Field Change
2012-08-27 12:48 Stephen Kelly New Issue
2012-08-27 12:48 Stephen Kelly Status new => assigned
2012-08-27 12:48 Stephen Kelly Assigned To => Alex Neundorf
2012-08-27 12:48 Stephen Kelly Note Added: 0030778
2012-08-27 15:41 Alex Neundorf Note Added: 0030779
2012-08-27 15:50 Stephen Kelly Note Added: 0030780
2012-08-27 16:11 Alex Neundorf Note Added: 0030782
2012-08-27 16:11 Alex Neundorf Status assigned => closed
2012-08-27 16:11 Alex Neundorf Resolution open => fixed
2012-08-27 16:11 Alex Neundorf Description Updated
2012-10-24 17:28 David Cole Fixed in Version => CMake 2.8.10
2012-10-24 17:28 David Cole Target Version => CMake 2.8.10


Copyright © 2000 - 2018 MantisBT Team