aboutsummaryrefslogtreecommitdiff
path: root/kde-modules/KDEFrameworkCompilerSettings.cmake
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 /kde-modules/KDEFrameworkCompilerSettings.cmake
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 'kde-modules/KDEFrameworkCompilerSettings.cmake')
-rw-r--r--kde-modules/KDEFrameworkCompilerSettings.cmake2
1 files changed, 1 insertions, 1 deletions
diff --git a/kde-modules/KDEFrameworkCompilerSettings.cmake b/kde-modules/KDEFrameworkCompilerSettings.cmake
index 1d3e1f7c..b191e550 100644
--- a/kde-modules/KDEFrameworkCompilerSettings.cmake
+++ b/kde-modules/KDEFrameworkCompilerSettings.cmake
@@ -71,7 +71,7 @@ if (CMAKE_CXX_COMPILER_ID STREQUAL "GNU")
endif()
endif()
-if (CMAKE_CXX_COMPILER_ID STREQUAL "Clang")
+if (CMAKE_CXX_COMPILER_ID MATCHES "Clang")
if (NOT CMAKE_CXX_COMPILER_VERSION VERSION_LESS "5.0.0")
set(CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} -Wzero-as-null-pointer-constant" )
endif()