From d42cc5dd7c4e78db16d1f4f0c17f141ad97b4cf4 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Ren=C3=A9=20J=2EV=2E=20Bertin?= Date: Mon, 12 Nov 2018 11:21:07 +0100 Subject: 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 --- modules/ECMEnableSanitizers.cmake | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'modules/ECMEnableSanitizers.cmake') 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 () -- cgit v1.2.1