diff options
author | René J.V. Bertin <rjvbertin@gmail.com> | 2018-11-12 11:21:07 +0100 |
---|---|---|
committer | René J.V. Bertin <rjvbertin@gmail.com> | 2018-11-12 11:21:07 +0100 |
commit | d42cc5dd7c4e78db16d1f4f0c17f141ad97b4cf4 (patch) | |
tree | 200b2f5b05b06fa6a718509f5879768194b93c4f /modules/ECMEnableSanitizers.cmake | |
parent | a1a7bfa7c3056bb7624431e587421d43d62cb08a (diff) | |
download | extra-cmake-modules-d42cc5dd7c4e78db16d1f4f0c17f141ad97b4cf4.tar.gz extra-cmake-modules-d42cc5dd7c4e78db16d1f4f0c17f141ad97b4cf4.tar.bz2 |
Use `MATCHES "Clang"` to detect clang
This is for compatibility with Apple's Xcode
compilers which identify as AppleClang.
Differential Revision: https://phabricator.kde.org/D16816
Diffstat (limited to 'modules/ECMEnableSanitizers.cmake')
-rw-r--r-- | modules/ECMEnableSanitizers.cmake | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/modules/ECMEnableSanitizers.cmake b/modules/ECMEnableSanitizers.cmake index 9a77c6f1..10b058c9 100644 --- a/modules/ECMEnableSanitizers.cmake +++ b/modules/ECMEnableSanitizers.cmake @@ -165,7 +165,7 @@ if (ECM_ENABLE_SANITIZERS) if(CMAKE_CXX_COMPILER_ID MATCHES "GNU") link_libraries(${XSAN_LINKER_FLAGS}) endif() - if (CMAKE_CXX_COMPILER_ID STREQUAL "Clang") + if (CMAKE_CXX_COMPILER_ID MATCHES "Clang") string(REPLACE "-Wl,--no-undefined" "" CMAKE_SHARED_LINKER_FLAGS "${CMAKE_SHARED_LINKER_FLAGS}") string(REPLACE "-Wl,--no-undefined" "" CMAKE_MODULE_LINKER_FLAGS "${CMAKE_MODULE_LINKER_FLAGS}") endif () |