Added optional address sanitizer flags

This commit is contained in:
ritt 2022-02-16 16:00:26 +01:00
parent 6864323b70
commit d828aa5830

View File

@ -25,6 +25,10 @@ else()
add_compile_options(-W -Wall -Wno-deprecated-declarations) add_compile_options(-W -Wall -Wno-deprecated-declarations)
endif() endif()
# optional address sanitizer, outcomment to turn on
#add_compile_options(-fsanitize=address)
#add_link_options(-fsanitize=address)
# find git # find git
find_package(Git) find_package(Git)