aboutsummaryrefslogtreecommitdiff
path: root/CMakeLists.txt
diff options
context:
space:
mode:
Diffstat (limited to 'CMakeLists.txt')
-rw-r--r--CMakeLists.txt3
1 files changed, 3 insertions, 0 deletions
diff --git a/CMakeLists.txt b/CMakeLists.txt
index 4064885..394f5bf 100644
--- a/CMakeLists.txt
+++ b/CMakeLists.txt
@@ -105,6 +105,9 @@ if(BUILD_TESTING)
CXX_CLANG_TIDY ""
)
endif()
+
+ add_compile_options("$<$<CXX_COMPILER_ID:GNU>:-fsanitize=undefined,address>")
+ add_link_options("$<$<CXX_COMPILER_ID:GNU>:-fsanitize=undefined,address>")
endif()
#[============================================================================[