From f49242e766cfbf17f3fd138497b45250b90ef336 Mon Sep 17 00:00:00 2001
From: Lars Bilke <lars.bilke@ufz.de>
Date: Thu, 9 Oct 2014 17:38:34 +0200
Subject: [PATCH] Clang is now called AppleClang on Mac OS.

---
 scripts/cmake/CompilerSetup.cmake | 3 ++-
 1 file changed, 2 insertions(+), 1 deletion(-)

diff --git a/scripts/cmake/CompilerSetup.cmake b/scripts/cmake/CompilerSetup.cmake
index f913845f4f8..fcd13e635e6 100644
--- a/scripts/cmake/CompilerSetup.cmake
+++ b/scripts/cmake/CompilerSetup.cmake
@@ -5,7 +5,8 @@ SET_DEFAULT_BUILD_TYPE(Debug)
 INCLUDE(MSVCMultipleProcessCompile) # /MP switch (multi processor) for VS
 
 # Set compiler helper variables
-IF ("${CMAKE_CXX_COMPILER_ID}" STREQUAL "Clang")
+
+IF ("${CMAKE_CXX_COMPILER_ID}" MATCHES "Clang")
     SET(COMPILER_IS_CLANG TRUE)
 ELSEIF ("${CMAKE_CXX_COMPILER_ID}" STREQUAL "GNU")
     SET(COMPILER_IS_GCC TRUE)
-- 
GitLab