From 3f7342dd1dfe00db6e94ce1c06796ddcf5a0b540 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Daniel=20Sch=C3=BCrmann?= Date: Tue, 19 Nov 2024 23:22:24 +0100 Subject: [PATCH] fix -fsanitize --- CMakeLists.txt | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/CMakeLists.txt b/CMakeLists.txt index 185ae03070f..27abbc36466 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -3356,8 +3356,8 @@ if(NOT SANITIZERS STREQUAL "") message(FATAL_ERROR "Sanitizers are only available on Clang or GCC") endif() list(JOIN SANITIZERS "," SANITZERS_JOINED) - target_compile_options(mixxx-lib PUBLIC -=${SANITZERS_JOINED}) - target_link_options(mixxx-lib PUBLIC -=${SANITZERS_JOINED}) + target_compile_options(mixxx-lib PUBLIC -fsanitize=${SANITZERS_JOINED}) + target_link_options(mixxx-lib PUBLIC -fsanitize=${SANITZERS_JOINED}) endif() # CoreAudio MP3/AAC Decoder