Enable use of TSAN

The -DWITH_TSAN option enables the ThreadSanitizer if libtsan is
installed.
This commit is contained in:
Markus Mäkelä
2018-07-25 23:20:35 +03:00
parent 00c107e051
commit 7e857e36eb
3 changed files with 20 additions and 2 deletions

View File

@ -7,8 +7,8 @@
find_library(ASAN_LIBRARIES NAMES libasan.so.0 libasan.so.1 libasan.so.2 libasan.so.3 libasan.so.4)
if (ASAN_LIBRARIES)
message(STATUS "Found AdressSanitizer libraries: ${ASAN_LIBRARIES}")
message(STATUS "Found AddressSanitizer libraries: ${ASAN_LIBRARIES}")
set(ASAN_FOUND TRUE CACHE INTERNAL "")
else()
message(STATUS "Could not find AdressSanitizer")
message(STATUS "Could not find AddressSanitizer")
endif()