From 6527f4e5d06239a61e0862a7169727c0876df1b7 Mon Sep 17 00:00:00 2001 From: Michael Oliver Date: Thu, 10 Sep 2026 21:38:02 -0700 Subject: [PATCH] fix(cmake): set hidden visibility preset by default to resolve macOS std::any_cast pybind11 type_info mismatches across boundaries Signed-off-by: Michael Oliver --- CMakeLists.txt | 3 +++ 1 file changed, 3 insertions(+) diff --git a/CMakeLists.txt b/CMakeLists.txt index ea11696ee..9856d4c2b 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -26,6 +26,9 @@ set(CMAKE_OSX_DEPLOYMENT_TARGET "10.15" CACHE STRING "Minimum OS X deployment ve project(OpenTimelineIO VERSION ${OTIO_VERSION} LANGUAGES C CXX) +set(CMAKE_CXX_VISIBILITY_PRESET hidden) +set(CMAKE_VISIBILITY_INLINES_HIDDEN ON) + #------------------------------------------------------------------------------ # Options # Add all options and settings here for all subprojects to aid in project