[cmake-developers] [CMake 0012533]: AUTOMOC property doesn't moc header when the source file #includes *.moc
Mantis Bug Tracker
mantis at public.kitware.com
Fri Oct 21 22:07:26 EDT 2011
The following issue has been SUBMITTED.
======================================================================
http://public.kitware.com/Bug/view.php?id=12533
======================================================================
Reported By: Jason Haslam
Assigned To:
======================================================================
Project: CMake
Issue ID: 12533
Category: CMake
Reproducibility: always
Severity: minor
Priority: normal
Status: new
======================================================================
Date Submitted: 2011-10-21 22:07 EDT
Last Modified: 2011-10-21 22:07 EDT
======================================================================
Summary: AUTOMOC property doesn't moc header when the source
file #includes *.moc
Description:
Given the following:
A.h:
class A {
Q_OBJECT
}
A.cpp:
#include "A.h"
class B {
Q_OBJECT
}
...
#include "A.moc"
The new AUTOMOC property correctly generates A.moc for class B defined in the
source file, but fails to generate moc_A.cpp (and #include it in
target_automoc.cpp) for class A defined in the header. I can force moc to run on
the header by #including moc_A.cpp as well. IMHO the header should be scanned
for classes containing Q_OBJECT even if the source file #includes *.moc.
======================================================================
Issue History
Date Modified Username Field Change
======================================================================
2011-10-21 22:07 Jason Haslam New Issue
======================================================================
More information about the cmake-developers
mailing list