aboutsummaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
authorGravatar wodim2016-01-07 15:26:20 +0100
committerGravatar wodim2016-01-07 15:27:56 +0100
commitd696250e0e605c18dd5d0ca65bfabbf3a3c213d8 (patch)
treeecf6e25788f901a4f2407b9ccf4af00d151b03df /src
parentFix #1623. (diff)
downloadKVIrc-d696250e0e605c18dd5d0ca65bfabbf3a3c213d8.tar.gz
KVIrc-d696250e0e605c18dd5d0ca65bfabbf3a3c213d8.tar.bz2
KVIrc-d696250e0e605c18dd5d0ca65bfabbf3a3c213d8.zip
Fix compilation on OS X.
Starting with CMake 3.0, the Clang compiler that comes with OS X is recognised by CMake as “AppleClang” instead of just “Clang”. Fixes #1825.
Diffstat (limited to 'src')
-rw-r--r--src/modules/perlcore/CMakeLists.txt2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/modules/perlcore/CMakeLists.txt b/src/modules/perlcore/CMakeLists.txt
index 2dfb61b2c..c971381e1 100644
--- a/src/modules/perlcore/CMakeLists.txt
+++ b/src/modules/perlcore/CMakeLists.txt
@@ -15,7 +15,7 @@ if(COMPILE_PERL_SUPPORT)
if(CMAKE_COMPILER_IS_GNUCXX)
# GCC whines because perl isn't extremely C++11 compliant
set(PERL_COMPILE_FLAGS "${PERL_COMPILE_FLAGS} -Wno-literal-suffix")
-elseif("${CMAKE_CXX_COMPILER_ID}" STREQUAL "Clang")
+elseif("${CMAKE_CXX_COMPILER_ID}" MATCHES "Clang")
# If the perl version is too old, clang will throw errors due to C++11
# incompatiblities
set(PERL_COMPILE_FLAGS "${PERL_COMPILE_FLAGS} -Wno-reserved-user-defined-literal")