diff options
author | Allen Byrne <50328838+byrnHDF@users.noreply.github.com> | 2021-09-22 11:51:55 (GMT) |
---|---|---|
committer | GitHub <noreply@github.com> | 2021-09-22 11:51:55 (GMT) |
commit | 534435271f63660a8234a52578b3e8f306541686 (patch) | |
tree | 2b4e601bb1ddba9b20615027020bd54df643199b /config/sanitizer/sanitizers.cmake | |
parent | c0f2bc87aca0ddfed4bbf1a75dda5ea71b6617eb (diff) | |
download | hdf5-534435271f63660a8234a52578b3e8f306541686.zip hdf5-534435271f63660a8234a52578b3e8f306541686.tar.gz hdf5-534435271f63660a8234a52578b3e8f306541686.tar.bz2 |
Need to match clang and versions not just "Clang" (#1029)
Diffstat (limited to 'config/sanitizer/sanitizers.cmake')
-rw-r--r-- | config/sanitizer/sanitizers.cmake | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/config/sanitizer/sanitizers.cmake b/config/sanitizer/sanitizers.cmake index 58c4050..8bf1d5b 100644 --- a/config/sanitizer/sanitizers.cmake +++ b/config/sanitizer/sanitizers.cmake @@ -30,7 +30,7 @@ endfunction() message(STATUS "USE_SANITIZER=${USE_SANITIZER}, CMAKE_C_COMPILER_ID=${CMAKE_C_COMPILER_ID}") if(USE_SANITIZER) - if(INTEL_CLANG OR "${CMAKE_C_COMPILER_ID}" MATCHES "Clang") + if(INTEL_CLANG OR CMAKE_C_COMPILER_ID MATCHES "[Cc]lang") set(CMAKE_EXPORT_COMPILE_COMMANDS ON) if(UNIX) |