From 32324e1a83fdda9522974d7f9cfcb1e1f66da4f2 Mon Sep 17 00:00:00 2001 From: Dave Thomas <7sharp9@users.noreply.github.com> Date: Fri, 14 Feb 2025 15:42:05 +0000 Subject: [PATCH] Add option to turn on sanitisers --- CMakeLists.txt | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/CMakeLists.txt b/CMakeLists.txt index 19fbea4c..54ef8c3f 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -40,6 +40,11 @@ set(FORMATS Standalone AU VST3 AUv3) # For simplicity, the name of the CMake project is also the name of the target project(${PROJECT_NAME} VERSION ${CURRENT_VERSION}) +# This lets you use the WITH_ADDRESS_SANITIZER and WITH_THREAD_SANITIZER oprtions +# These can be set as part of your cmake options with -DWITH_ADDRESS_SANITIZER:BOOL=ON or -DWITH_THREAD_SANITIZER:BOOL=ON +# or set as options in your IDE etc +include(Sanitizers) + # JUCE is setup as a submodule in the /JUCE folder # Locally, you must run `git submodule update --init --recursive` once # and later `git submodule update --remote --merge` to keep it up to date