Skip to content

Commit ae70039

Browse files
Fix compiler detection for AppleClang in Sanitizers.cmake
1 parent 61fda12 commit ae70039

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

cmake/Sanitizers.cmake

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
function(enable_sanitizers project_name)
22

3-
if(CMAKE_CXX_COMPILER_ID STREQUAL "GNU" OR CMAKE_CXX_COMPILER_ID STREQUAL
4-
"Clang")
3+
if(CMAKE_CXX_COMPILER_ID STREQUAL "GNU" OR CMAKE_CXX_COMPILER_ID MATCHES
4+
"*Clang")
55
option(ENABLE_COVERAGE "Enable coverage reporting for gcc/clang" FALSE)
66

77
if(ENABLE_COVERAGE)

0 commit comments

Comments
 (0)