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                                    
======================================================================

-- 

Powered by www.kitware.com

Please keep messages on-topic and check the CMake FAQ at: 
http://www.cmake.org/Wiki/CMake_FAQ

Kitware offers various services to support the CMake community. For more 
information on each offering, please visit:

CMake Support: http://cmake.org/cmake/help/support.html
CMake Consulting: http://cmake.org/cmake/help/consulting.html
CMake Training Courses: http://cmake.org/cmake/help/training.html

Visit other Kitware open-source projects at 
http://www.kitware.com/opensource/opensource.html

Follow this link to subscribe/unsubscribe:
http://public.kitware.com/mailman/listinfo/cmake-developers

Reply via email to