<table><tr><td style="">flherne created this revision.<br />flherne added a reviewer: KDevelop.<br />Restricted Application added a subscriber: kdevelop-devel.
</td><a style="text-decoration: none; padding: 4px 8px; margin: 0 8px 8px; float: right; color: #464C5C; font-weight: bold; border-radius: 3px; background-color: #F7F7F9; background-image: linear-gradient(to bottom,#fff,#f1f0f1); display: inline-block; border: 1px solid rgba(71,87,120,.2);" href="https://phabricator.kde.org/D8951" rel="noreferrer">View Revision</a></tr></table><br /><div><strong>REVISION SUMMARY</strong><div><p>CMake 3.9 introduced bogus automoc warnings of the form:</p>

<p>"The file includes the moc file "foo.moc", but does not contain a Q_OBJECT, Q_GADGET or Q_NAMESPACE macro."</p>

<p>These are caused by use of KF5-provided macros that it doesn't recognise, and obscure the real compiler output.</p>

<p>CMake 3.10+ can be told extra macros to accept, which avoids the warnings.</p></div></div><br /><div><strong>TEST PLAN</strong><div><p>Builds using CMake 3.10, with reduced warning spam.</p></div></div><br /><div><strong>REPOSITORY</strong><div><div>R32 KDevelop</div></div></div><br /><div><strong>REVISION DETAIL</strong><div><a href="https://phabricator.kde.org/D8951" rel="noreferrer">https://phabricator.kde.org/D8951</a></div></div><br /><div><strong>AFFECTED FILES</strong><div><div>CMakeLists.txt</div></div></div><br /><div><strong>To: </strong>flherne, KDevelop<br /><strong>Cc: </strong>kdevelop-devel<br /></div>