build: add support for AppleClang compiler

This commit is contained in:
Frank Dischner
2022-01-26 18:18:51 -06:00
parent ba6c378897
commit 771a400007
5 changed files with 16 additions and 7 deletions

View File

@@ -55,7 +55,7 @@ if(${projectPrefix}IWYU)
MAX_LINE_LENGTH 120
NO_COMMENTS
)
if(CMAKE_CXX_COMPILER_ID STREQUAL "Clang")
if(CMAKE_CXX_COMPILER_ID MATCHES "Clang")
set(${projectPrefix}AS_SYSTEM_HEADERS ON)
endif()
endif()