diff options
author | Allen Byrne <50328838+byrnHDF@users.noreply.github.com> | 2021-09-24 12:36:56 (GMT) |
---|---|---|
committer | GitHub <noreply@github.com> | 2021-09-24 12:36:56 (GMT) |
commit | 0ea3bceb39f9b037a215eb1a5b6a5cdb2a678737 (patch) | |
tree | a7b9427e34012b9aa45da799d3068fff9ae139be /config/sanitizer/sanitizers.cmake | |
parent | a6d55be7d686ea0fa6fccb6523b1a8d45d3903d1 (diff) | |
download | hdf5-0ea3bceb39f9b037a215eb1a5b6a5cdb2a678737.zip hdf5-0ea3bceb39f9b037a215eb1a5b6a5cdb2a678737.tar.gz hdf5-0ea3bceb39f9b037a215eb1a5b6a5cdb2a678737.tar.bz2 |
1.12 Merge Need to match clang and versions not just "Clang" #1029 (#1030)
* Merge Need to match clang and versions not just "Clang"
* Merge MS clang needs EHsc flag #1035
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) |