[cmake-developers] [CMake 0013494]: CMake AUTOMOC does not re-run moc if includes change
Mantis Bug Tracker
mantis at public.kitware.com
Mon Aug 27 12:48:01 EDT 2012
The following issue has been SUBMITTED.
======================================================================
http://public.kitware.com/Bug/view.php?id=13494
======================================================================
Reported By: Stephen Kelly
Assigned To: Alex Neundorf
======================================================================
Project: CMake
Issue ID: 13494
Category: CMake
Reproducibility: always
Severity: minor
Priority: normal
Status: assigned
======================================================================
Date Submitted: 2012-08-27 12:48 EDT
Last Modified: 2012-08-27 12:48 EDT
======================================================================
Summary: CMake AUTOMOC does not re-run moc if includes change
Description:
If 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.
======================================================================
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
======================================================================
More information about the cmake-developers
mailing list