CMakeLists.txt: re-enable ZINT_SANITIZE for MSVC, though warning issues + works?

This commit is contained in:
gitlost 2021-07-12 17:06:49 +01:00
parent 7a1500afeb
commit 58420f3dde

View File

@ -62,7 +62,7 @@ if(ZINT_TEST)
endif() endif()
set(SANITIZER_FLAGS "") set(SANITIZER_FLAGS "")
if(ZINT_SANITIZE AND NOT MSVC) if(ZINT_SANITIZE)
file(WRITE ${CMAKE_BINARY_DIR}/dummy.c "int main() { return 0; }") file(WRITE ${CMAKE_BINARY_DIR}/dummy.c "int main() { return 0; }")
set(SANITIZERS address leak undefined) #address hwaddress leak memory thread undefined set(SANITIZERS address leak undefined) #address hwaddress leak memory thread undefined
foreach(sanitizer IN ITEMS ${SANITIZERS}) foreach(sanitizer IN ITEMS ${SANITIZERS})