Fix ASAN on clang-cl

This commit is contained in:
Vladislav Vaintroub 2019-07-04 10:25:36 +02:00
parent 4513e73e0f
commit 4d6a90942c

View file

@ -107,7 +107,8 @@ IF(MSVC)
SET(DYNAMIC_UCRT_LINKER_OPTION " /NODEFAULTLIB:libucrt.lib /DEFAULTLIB:ucrt.lib")
IF(WITH_ASAN)
SET(MSVC_CRT_TYPE /MD CACHE STRING FORCE)
# Workaround something Linux specific
SET(SECURITY_HARDENED 0 CACHE INTERNAL "" FORCE)
ENABLE_ASAN()
ENDIF()