D8951: CMakeLists.txt: Append KF5 macros to CMAKE_AUTOMOC_MACRO_NAMES
Francis Herne
noreply at phabricator.kde.org
Wed Nov 22 15:13:48 UTC 2017
flherne created this revision.
flherne added a reviewer: KDevelop.
Restricted Application added a subscriber: kdevelop-devel.
REVISION SUMMARY
CMake 3.9 introduced bogus automoc warnings of the form:
"The file includes the moc file "foo.moc", but does not contain a Q_OBJECT, Q_GADGET or Q_NAMESPACE macro."
These are caused by use of KF5-provided macros that it doesn't recognise, and obscure the real compiler output.
CMake 3.10+ can be told extra macros to accept, which avoids the warnings.
TEST PLAN
Builds using CMake 3.10, with reduced warning spam.
REPOSITORY
R32 KDevelop
REVISION DETAIL
https://phabricator.kde.org/D8951
AFFECTED FILES
CMakeLists.txt
To: flherne, #kdevelop
Cc: kdevelop-devel
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mail.kde.org/pipermail/kdevelop-devel/attachments/20171122/696393bf/attachment.html>
More information about the KDevelop-devel
mailing list