From d828aa58305ee8ce2ae882c0ff3c34cfa66650e5 Mon Sep 17 00:00:00 2001 From: ritt Date: Wed, 16 Feb 2022 16:00:26 +0100 Subject: [PATCH] Added optional address sanitizer flags --- CMakeLists.txt | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/CMakeLists.txt b/CMakeLists.txt index c587a661..ee85b1ed 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -25,6 +25,10 @@ else() add_compile_options(-W -Wall -Wno-deprecated-declarations) endif() +# optional address sanitizer, outcomment to turn on +#add_compile_options(-fsanitize=address) +#add_link_options(-fsanitize=address) + # find git find_package(Git)