diff options
author | Allen Byrne <byrn@hdfgroup.org> | 2020-01-26 16:19:17 (GMT) |
---|---|---|
committer | David Young <dyoung@hdfgroup.org> | 2020-05-20 14:31:53 (GMT) |
commit | c01add2ac781323f61ff3aa4176ea2d67b4a5cc3 (patch) | |
tree | b452b152c42c575acf3d55de014446908f352322 /config/sanitizer/sanitizers.cmake | |
parent | c491fd1cfc65e7c358ac0a07ffd1bbab4e5e8639 (diff) | |
download | hdf5-c01add2ac781323f61ff3aa4176ea2d67b4a5cc3.zip hdf5-c01add2ac781323f61ff3aa4176ea2d67b4a5cc3.tar.gz hdf5-c01add2ac781323f61ff3aa4176ea2d67b4a5cc3.tar.bz2 |
Only use sanitizer with Clang
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 7a6c195..2625ec3 100644 --- a/config/sanitizer/sanitizers.cmake +++ b/config/sanitizer/sanitizers.cmake @@ -28,7 +28,7 @@ function(append value) endforeach(variable) endfunction() -if(USE_SANITIZER) +if(USE_SANITIZER AND "${CMAKE_CXX_COMPILER_ID}" MATCHES "Clang") set(CMAKE_EXPORT_COMPILE_COMMANDS ON) append("-fno-omit-frame-pointer" CMAKE_C_FLAGS CMAKE_CXX_FLAGS) |