<table><tr><td style="">rjvbb updated this revision to Diff 45786.<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 implements and uses my idea of an <tt style="background: #ebebeb; font-size: 13px;">ecm_add_<lang>_compiler_flags_if_supported</tt>  function set for C and C++. It uses compiler ID+version conditions to determine if flag(s) are supported when those conditions are known and reliable - otherwise and only then does it resort to querying the compiler.</p>

<p>I do not particularly care whether or not the KDE*CompilerSettings modules use the <tt style="background: #ebebeb; font-size: 13px;">SUPPORTED_IF</tt> feature but I think it should be there as a courtesy to devs who have reasons to avoid querying the compiler (and for compilers where CMake's querying algorithm doesn't work).</p></div></div><br /><div><strong>CHANGES SINCE LAST UPDATE</strong><div><a href="https://phabricator.kde.org/D16894?vs=45567&id=45786">https://phabricator.kde.org/D16894?vs=45567&id=45786</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>kfunk, apol, kde-frameworks-devel, kde-buildsystem, Build System, michaelh, ngraham, bruns<br /></div>