Skip to content
Snippets Groups Projects
Commit 3d4ee0ea authored by Wuttke, Joachim's avatar Wuttke, Joachim
Browse files

Compiler ID under Apple is AppleClang

parent b27ae4d7
No related branches found
No related tags found
1 merge request!515CMake: define and use variables CLANG, GCC, LINUX
Pipeline #51450 passed
...@@ -128,12 +128,12 @@ else() ...@@ -128,12 +128,12 @@ else()
endif() endif()
include(BornAgain/Compiler) include(BornAgain/Compiler)
if(CMAKE_CXX_COMPILER_ID STREQUAL "Clang") if(CMAKE_CXX_COMPILER_ID MATCHES "Clang")
set(CLANG ON) set(CLANG ON)
elseif(CMAKE_CXX_COMPILER_ID STREQUAL "GNU") elseif(CMAKE_CXX_COMPILER_ID STREQUAL "GNU")
set(GCC ON) set(GCC ON)
elseif(NOT WIN32) elseif(NOT WIN32)
message(FATAL_ERROR "Unsupported compiler") message(FATAL_ERROR "Unsupported compiler, id=${CMAKE_CXX_COMPILER_ID}")
endif() endif()
if(ZERO_TOLERANCE) if(ZERO_TOLERANCE)
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment