Skip to content
Snippets Groups Projects
Commit 7c53c03e authored by Martin Wölzer's avatar Martin Wölzer
Browse files

cmake/sanitizer.cmake: added leak sanitizer

parent decb90d5
No related branches found
No related tags found
2 merge requests!12Release 0.3.0 including non-param-options behavior change,!11Draft: Release 0.3.0
......@@ -6,6 +6,11 @@ if(CMAKE_CXX_COMPILER_ID STREQUAL "GNU" OR CMAKE_CXX_COMPILER_ID STREQUAL "Clang
list(APPEND libClaPP_SANITIZERS "address")
endif()
option(libClaPP_ENABLE_SANITIZER_LEAK "Leak sanitizer" FALSE)
if(libClaPP_ENABLE_SANITIZER_LEAK)
list(APPEND libClaPP_SANITIZERS "leak")
endif()
option(libClaPP_ENABLE_SANITIZER_MEMORY "Memory sanitizer" FALSE)
if(libClaPP_ENABLE_SANITIZER_MEMORY)
list(APPEND libClaPP_SANITIZERS "memory")
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment