diff --git a/scripts/cmake/CompilerSetup.cmake b/scripts/cmake/CompilerSetup.cmake index f913845f4f83b273f8c5d46e076af677546be6ca..fcd13e635e68f42333e1261c74fb208688ccca8d 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)