X-Git-Url: http://info.iut-bm.univ-fcomte.fr/pub/gitweb/simgrid.git/blobdiff_plain/37147380a9b22e9a31427859eed2def0bb2c3d74..4e2035d7b4730d535ebd7619c4e85878f71f8cb2:/CMakeLists.txt?ds=sidebyside diff --git a/CMakeLists.txt b/CMakeLists.txt index 51590bce4d..b16aeab13a 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -618,6 +618,10 @@ endif() file(REMOVE test_stackgrowth) #-------------------------------------------------------------------------------------------------- +if(enable_address_sanitizer OR enable_thread_sanitizer OR enable_undefined_sanitizer) + set(HAVE_SANITIZER 1) +endif() + ### check for addr2line find_path(ADDR2LINE NAMES addr2line PATHS NO_DEFAULT_PATHS) if(ADDR2LINE)