From 91b88c0568334c49a22c8f7bcc94f35e495f9a00 Mon Sep 17 00:00:00 2001 From: Jack Andersen Date: Mon, 11 Dec 2017 16:05:54 -1000 Subject: [PATCH] Add ASan build capability --- CMakeLists.txt | 3 +++ 1 file changed, 3 insertions(+) diff --git a/CMakeLists.txt b/CMakeLists.txt index 825bf0f..e37dce4 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -87,6 +87,9 @@ add_library(amuse ${SOURCES} ${HEADERS} ${EXTRAS}) +if(COMMAND add_sanitizers) + add_sanitizers(amuse) +endif() if(TARGET boo AND NOT WINDOWS_STORE) # AudioUnit Target (OS X only)