<table><tr><td style="">rjvbb created this revision.<br />rjvbb added a reviewer: Build System.<br />rjvbb added projects: Build System, Frameworks.<br />Herald edited subscribers, added: kde-buildsystem, kde-frameworks-devel; removed: Frameworks.<br />rjvbb requested review of this revision.
</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/D16816">View Revision</a></tr></table><br /><div><strong>REVISION SUMMARY</strong><div><p>Scanning the ECM for something that could explain a symbol visibility issue I'm seeing with AppleClang but not with Clang I noticed that this compiler isn't always detected the same way.</p>
<p>This patch ensures that <tt style="background: #ebebeb; font-size: 13px;">CMAKE_<LANG>_COMPILER_ID MATCHES "Clang"</tt> is used throughout, i.e. <tt style="background: #ebebeb; font-size: 13px;">MATCHES</tt> instead of <tt style="background: #ebebeb; font-size: 13px;">STREQUAL</tt>.<br />
This includes 1 or 2 cases where AppleClang is unlikely to be the compiler in use (for instance because of <tt style="background: #ebebeb; font-size: 13px;">AND NOT APPLE</tt>) but I think it's better to use the same detection principle everywhere if not only to prevent inappropriate copy/paste edits in the future.</p></div></div><br /><div><strong>REPOSITORY</strong><div><div>R240 Extra CMake Modules</div></div></div><br /><div><strong>REVISION DETAIL</strong><div><a href="https://phabricator.kde.org/D16816">https://phabricator.kde.org/D16816</a></div></div><br /><div><strong>AFFECTED FILES</strong><div><div>kde-modules/KDECMakeSettings.cmake<br />
kde-modules/KDECompilerSettings.cmake<br />
kde-modules/KDEFrameworkCompilerSettings.cmake<br />
modules/ECMEnableSanitizers.cmake</div></div></div><br /><div><strong>To: </strong>rjvbb, Build System<br /><strong>Cc: </strong>kde-frameworks-devel, kde-buildsystem, Build System, michaelh, ngraham, bruns<br /></div>