summaryrefslogtreecommitdiffstats
path: root/config/sanitizer/sanitizers.cmake
diff options
context:
space:
mode:
authorAllen Byrne <50328838+byrnHDF@users.noreply.github.com>2021-08-20 20:49:53 (GMT)
committerGitHub <noreply@github.com>2021-08-20 20:49:53 (GMT)
commitb38bc071e956bec607b180a7d3f8217197393f02 (patch)
treed5e87eb1695b4e5ec1b26aa1fa82ba2fb6335237 /config/sanitizer/sanitizers.cmake
parent09283ffbcb921efa89a7a1ca728f1d4b7064df8e (diff)
downloadhdf5-b38bc071e956bec607b180a7d3f8217197393f02.zip
hdf5-b38bc071e956bec607b180a7d3f8217197393f02.tar.gz
hdf5-b38bc071e956bec607b180a7d3f8217197393f02.tar.bz2
Remove incorrect compiler check for windows clang sanitizer (#942)
Diffstat (limited to 'config/sanitizer/sanitizers.cmake')
-rw-r--r--config/sanitizer/sanitizers.cmake2
1 files changed, 1 insertions, 1 deletions
diff --git a/config/sanitizer/sanitizers.cmake b/config/sanitizer/sanitizers.cmake
index 22b9e3c..58c4050 100644
--- a/config/sanitizer/sanitizers.cmake
+++ b/config/sanitizer/sanitizers.cmake
@@ -80,7 +80,7 @@ if(USE_SANITIZER)
message(
FATAL_ERROR "Unsupported value of USE_SANITIZER: ${USE_SANITIZER}")
endif()
- elseif(MSVC AND NOT CMAKE_C_COMPILER_VERSION VERSION_LESS 19.29)
+ elseif(MSVC)
if(USE_SANITIZER MATCHES "([Aa]ddress)")
message(STATUS "Building with Address sanitizer")
append("/fsanitize=address" CMAKE_C_SANITIZER_FLAGS CMAKE_CXX_SANITIZER_FLAGS)