CMake: Add missing SANITIZE option

This commit is contained in:
mj-xmr 2021-09-02 10:54:43 +02:00
parent 8fde011dbe
commit 167cbdf870
No known key found for this signature in database
GPG Key ID: C101BF94093451E0
1 changed files with 1 additions and 0 deletions

View File

@ -504,6 +504,7 @@ if(STATIC)
set(CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} -DZMQ_STATIC") set(CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} -DZMQ_STATIC")
endif() endif()
option(SANITIZE "Use ASAN memory sanitizer" OFF)
if(SANITIZE) if(SANITIZE)
if (MSVC) if (MSVC)
message(FATAL_ERROR "Cannot sanitize with MSVC") message(FATAL_ERROR "Cannot sanitize with MSVC")