From b697a1ecc4555b77c6c4756b81cb5abd467ddd3c Mon Sep 17 00:00:00 2001 From: opcm Date: Sat, 5 Oct 2024 21:17:37 +0200 Subject: [PATCH] disable asan on MacOS --- CMakeLists.txt | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/CMakeLists.txt b/CMakeLists.txt index e3de93a8..c7d99535 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -101,6 +101,10 @@ if(UNIX) # APPLE, LINUX, FREE_BSD elseif() set (PCM_DYNAMIC "") endif() + if(APPLE) + set(PCM_NO_ASAN ON) + message(STATUS "AddressSanitizer is currently disabled on MacOS") + endif() if(PCM_NO_ASAN) message(STATUS "AddressSanitizer is disabled") set(PCM_ASAN "")