diff --git a/lib/CMakeLists.txt b/lib/CMakeLists.txt index 0fb0d75..b7a0d68 100644 --- a/lib/CMakeLists.txt +++ b/lib/CMakeLists.txt @@ -48,6 +48,11 @@ if(MSVC) #its not set otherwise set(COMPILER_NAME MSVC) endif() +# treat Clang and AppleClang (and any other Clang) as just "Clang" +if(COMPILER_NAME MATCHES ".*Clang") + set(COMPILER_NAME "Clang") +endif() + message(STATUS "Compiler name: ${COMPILER_NAME}") if(NOT DEFINED COMPILER_NAME)