From b99f1afac608fd2b99a5f0acdd3a120e5a56dec3 Mon Sep 17 00:00:00 2001 From: Laurent Rineau Date: Wed, 15 Jun 2022 16:05:10 +0200 Subject: [PATCH] Disable TBB when ASAN is used --- Installation/cmake/modules/CGAL_SetupCGALDependencies.cmake | 1 + 1 file changed, 1 insertion(+) diff --git a/Installation/cmake/modules/CGAL_SetupCGALDependencies.cmake b/Installation/cmake/modules/CGAL_SetupCGALDependencies.cmake index 858cfc944ff..a438c687650 100644 --- a/Installation/cmake/modules/CGAL_SetupCGALDependencies.cmake +++ b/Installation/cmake/modules/CGAL_SetupCGALDependencies.cmake @@ -115,6 +115,7 @@ function(CGAL_setup_CGAL_dependencies target) endif() if(CGAL_USE_ASAN OR ENV{CGAL_USE_ASAN}) + set(CMAKE_DISABLE_FIND_PACKAGE_TBB TRUE CACHE BOOL "CGAL_USE_ASAN (AddressSanitizer) and TBB are incompatible") target_compile_options(${target} INTERFACE -fsanitize=address) target_link_options(${target} INTERFACE -fsanitize=address) endif()