View Issue Details Jump to Notes ] Print ]
IDProjectCategoryView StatusDate SubmittedLast Update
0015254CMakeCMakepublic2014-11-17 15:112016-06-10 14:31
ReporterJonnhy Fisher 
Assigned ToKitware Robot 
PrioritynormalSeveritymajorReproducibilityalways
StatusclosedResolutionmoved 
PlatformOSOS Version
Product VersionCMake 3.0.2 
Target VersionFixed in Version 
Summary0015254: AUTOMOC ignores Q_OBJECT if preceded by non-whitespace characters
DescriptionA 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 Reproduceenable AUTOMOC
put a some none-whitespace before Q_OBJECT
TagsNo tags attached.
Attached Files

 Relationships

  Notes
(0042669)
Kitware Robot (administrator)
2016-06-10 14:29

Resolving issue as `moved`.

This issue tracker is no longer used. Further discussion of this issue may take place in the current CMake Issues page linked in the banner at the top of this page.

 Issue History
Date Modified Username Field Change
2014-11-17 15:11 Jonnhy Fisher New Issue
2016-06-10 14:29 Kitware Robot Note Added: 0042669
2016-06-10 14:29 Kitware Robot Status new => resolved
2016-06-10 14:29 Kitware Robot Resolution open => moved
2016-06-10 14:29 Kitware Robot Assigned To => Kitware Robot
2016-06-10 14:31 Kitware Robot Status resolved => closed


Copyright © 2000 - 2018 MantisBT Team