aboutsummaryrefslogtreecommitdiff
path: root/modules
diff options
context:
space:
mode:
authorRené J.V. Bertin <rjvbertin@gmail.com>2018-11-12 11:21:07 +0100
committerRené J.V. Bertin <rjvbertin@gmail.com>2018-11-12 11:21:07 +0100
commitd42cc5dd7c4e78db16d1f4f0c17f141ad97b4cf4 (patch)
tree200b2f5b05b06fa6a718509f5879768194b93c4f /modules
parenta1a7bfa7c3056bb7624431e587421d43d62cb08a (diff)
downloadextra-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')
-rw-r--r--modules/ECMEnableSanitizers.cmake2
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 ()