diff options
author | asapelkin <asapelkin0x01@ya.ru> | 2019-10-22 00:01:22 +0300 |
---|---|---|
committer | asapelkin <asapelkin0x01@ya.ru> | 2019-10-22 01:13:59 +0300 |
commit | 704e34fa995540f16fcf08be0f9fe32c5fc10088 (patch) | |
tree | c47fe384b731c5b616e66e03b01f1e00375828be /CMakeLists.txt | |
parent | a6fae36cb25cb929b19ebfdc5c2ce810507a7cdb (diff) |
enabled address sanitizing for tests
Signed-off-by: asapelkin <asapelkin0x01@ya.ru>
Diffstat (limited to 'CMakeLists.txt')
-rw-r--r-- | CMakeLists.txt | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/CMakeLists.txt b/CMakeLists.txt index f8e92e250..c022f6f16 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -219,6 +219,12 @@ if (APPLE) set(CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} -stdlib=libc++") endif() +option(SANITIZE_ADDRESS "Enable address sanitizer in tests" OFF) +if (SANITIZE_ADDRESS) + include(SanitizerFlags) + enable_sanitizer() +endif () + # Handle Translations, pick all client_* files from trans directory. file( GLOB TRANS_FILES ${CMAKE_SOURCE_DIR}/translations/client_*.ts) set(TRANSLATIONS ${TRANS_FILES}) |