D8951: CMakeLists.txt: Append KF5 macros to CMAKE_AUTOMOC_MACRO_NAMES
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.
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.
Builds using CMake 3.10, with reduced warning spam.
To: flherne, #kdevelop
-------------- next part --------------
An HTML attachment was scrubbed...
More information about the KDevelop-devel