diff --git a/CMakeLists.txt b/CMakeLists.txt index d8adf6c396f..9d369d2d453 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -1296,6 +1296,15 @@ if(WITH_PYTHON_MODULE) message(STATUS "GTests not compatible with Python module, disabling WITH_GTESTS") set(WITH_GTESTS OFF) endif() + if(APPLE) + if(WITH_COMPILER_ASAN) + message(STATUS + "ASAN is not compatible with Python module on APPLE, " + "disabling WITH_COMPILER_ASAN" + ) + set(WITH_COMPILER_ASAN OFF) + endif() + endif() endif()