[cmake-developers] [CMake 0015254]: AUTOMOC ignores Q_OBJECT if preceded by non-whitespace characters
Mantis Bug Tracker
mantis at public.kitware.com
Mon Nov 17 15:11:38 EST 2014
The following issue has been SUBMITTED.
======================================================================
http://www.cmake.org/Bug/view.php?id=15254
======================================================================
Reported By: Jonnhy Fisher
Assigned To:
======================================================================
Project: CMake
Issue ID: 15254
Category: CMake
Reproducibility: always
Severity: major
Priority: normal
Status: new
======================================================================
Date Submitted: 2014-11-17 15:11 EST
Last Modified: 2014-11-17 15:11 EST
======================================================================
Summary: AUTOMOC ignores Q_OBJECT if preceded by
non-whitespace characters
Description:
A header file like
class A : public QObject
{ Q_OBJECT
};
or
class A : public QObject
{
/* */ Q_OBJECT
};
with CMAKE_AUTOMOC will actually not run moc on that file, while
class A : public QObject
{
Q_OBJECT;
};
will run moc. Apparently there may only be whitespace in front of Q_OBJECT to
trigger automoc. This is not documented and kind of surprising.
Steps to Reproduce:
enable AUTOMOC
put a some none-whitespace before Q_OBJECT
======================================================================
Issue History
Date Modified Username Field Change
======================================================================
2014-11-17 15:11 Jonnhy Fisher New Issue
======================================================================
More information about the cmake-developers
mailing list