From 3d4ee0ea2b1cf822cf50c91c99d1c503ce20feca Mon Sep 17 00:00:00 2001
From: "Joachim Wuttke (o)" <j.wuttke@fz-juelich.de>
Date: Mon, 6 Dec 2021 16:12:40 +0100
Subject: [PATCH] Compiler ID under Apple is AppleClang

---
 CMakeLists.txt | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

diff --git a/CMakeLists.txt b/CMakeLists.txt
index 63c16ebfdc4..93eccf91108 100644
--- a/CMakeLists.txt
+++ b/CMakeLists.txt
@@ -128,12 +128,12 @@ else()
 endif()
 
 include(BornAgain/Compiler)
-if(CMAKE_CXX_COMPILER_ID STREQUAL "Clang")
+if(CMAKE_CXX_COMPILER_ID MATCHES "Clang")
     set(CLANG ON)
 elseif(CMAKE_CXX_COMPILER_ID STREQUAL "GNU")
     set(GCC ON)
 elseif(NOT WIN32)
-    message(FATAL_ERROR "Unsupported compiler")
+    message(FATAL_ERROR "Unsupported compiler, id=${CMAKE_CXX_COMPILER_ID}")
 endif()
 
 if(ZERO_TOLERANCE)
-- 
GitLab