From eecf1a822bc65131bda6db87dc162fc87ab47905 Mon Sep 17 00:00:00 2001 From: Daniele Forsi Date: Sat, 6 Apr 2024 20:54:57 +0200 Subject: [PATCH] Add cmake option to optionally compile with LeakSanitizer Alse change the description of the existing option SANITIZE_ADDRESS to avoid ambiguity. --- CMakeLists.txt | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/CMakeLists.txt b/CMakeLists.txt index 1c5b14947..2f1cc9796 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -25,7 +25,8 @@ set(sdrangel_VERSION_SUFFIX "") # SDRAngel cmake options option(DEBUG_OUTPUT "Print debug messages" OFF) -option(SANITIZE_ADDRESS "Activate memory address sanitization" OFF) +option(SANITIZE_ADDRESS "Activate detection of uninitialized memory (AddressSanitizer)" OFF) +option(SANITIZE_MEMORY "Activate detection of leaked memory (LeakSanitizer)" OFF) option(RX_SAMPLE_24BIT "Internal 24 bit Rx DSP" ON) option(BUILD_SERVER "Build Server" ON) option(BUILD_GUI "Build GUI" ON)