Merge pull request #7917

167cbdf CMake: Add missing SANITIZE option (mj-xmr)
This commit is contained in:
luigi1111 2021-09-23 22:15:55 -05:00
commit 60eddc566e
No known key found for this signature in database
GPG Key ID: F4ACA0183641E010

View File

@ -503,6 +503,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")