From cc8aa6fe74564180e2eed277dabd2043907c7fd8 Mon Sep 17 00:00:00 2001 From: Bart Louwers Date: Mon, 12 Jan 2026 17:39:35 +0100 Subject: [PATCH] make mbgl-core public when building amalgamation (#4043) --- CMakeLists.txt | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/CMakeLists.txt b/CMakeLists.txt index 2959da094..be1225318 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -132,6 +132,13 @@ else() add_library(mbgl-core STATIC) endif() +# Override visibility for mbgl-core when building amalgamation +if(MLN_CREATE_AMALGAMATION) + target_compile_options(mbgl-core PRIVATE + -fvisibility=default + ) +endif() + list(APPEND INCLUDE_FILES ${PROJECT_SOURCE_DIR}/include/mbgl/gfx/context.hpp ${PROJECT_SOURCE_DIR}/include/mbgl/gfx/drawable.hpp