Stephen Kelly wrote:
> The bug can be reproduced with this cpp file:
>
>
> #include <QtTest/QTest>
>
> // Make CMAKE_AUTOMOC run on this file.
> class MyObject : public QObject
> {
> Q_OBJECT
> explicit MyObject(QObject *parent = 0)
> {
> QSKIP("The QSKIP macro has two args in Qt4 and one in Qt5.");
> }
> };
Also note if you try this, do not compile in c++11 mode. The QSKIP macro is
variadic in that mode to ignore the additional argument necessary in Qt 4
code. I don't know if moc handles that.
Thanks,
Steve.
--
Powered by www.kitware.com
Visit other Kitware open-source projects at
http://www.kitware.com/opensource/opensource.html
Please keep messages on-topic and check the CMake FAQ at:
http://www.cmake.org/Wiki/CMake_FAQ
Follow this link to subscribe/unsubscribe:
http://public.kitware.com/cgi-bin/mailman/listinfo/cmake-developers