<table><tr><td style="">rjvbb updated this revision to Diff 50451.<br />rjvbb added a comment.
</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/D16894">View Revision</a></tr></table><br /><div><div><p>This follows David's suggestion, but using <tt style="background: #ebebeb; font-size: 13px;">QUERY_IF</tt> instead of the suggested <tt style="background: #ebebeb; font-size: 13px;">TRY_IF</tt> to make it clear that this parameter controls the querying of the compiler.<br />
I haven't yet tested the new logic exhaustively but the as far as I can tell the macro behaves as intended as used in the two compiler settings modules.</p>

<p>I've simplified the <tt style="background: #ebebeb; font-size: 13px;">QUERY_IF</tt> conditions in those modules to just "if APPLE". Querying systematically on APPLE seems reasonable because the likelihood that a non-clang compiler is used for building is very small and when  it happens we'd probably be dealing with a non-GNU compiler.</p></div></div><br /><div><strong>CHANGES SINCE LAST UPDATE</strong><div><a href="https://phabricator.kde.org/D16894?vs=50399&id=50451">https://phabricator.kde.org/D16894?vs=50399&id=50451</a></div></div><br /><div><strong>REVISION DETAIL</strong><div><a href="https://phabricator.kde.org/D16894">https://phabricator.kde.org/D16894</a></div></div><br /><div><strong>AFFECTED FILES</strong><div><div>kde-modules/KDECompilerSettings.cmake<br />
kde-modules/KDEFrameworkCompilerSettings.cmake<br />
modules/ECMAddCompilerFlag.cmake</div></div></div><br /><div><strong>To: </strong>rjvbb, Build System, kfunk<br /><strong>Cc: </strong>dfaure, kfunk, apol, kde-frameworks-devel, kde-buildsystem, Build System, michaelh, ngraham, bruns<br /></div>