From ee67190724eae4c21bd01f83d3eac1f6eea9d744 Mon Sep 17 00:00:00 2001 From: Curve Date: Wed, 1 Jan 2025 19:21:58 +0100 Subject: [PATCH] fix(cmake): symbol exports --- CMakeLists.txt | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) diff --git a/CMakeLists.txt b/CMakeLists.txt index c91959b..ca7e8bb 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -12,7 +12,10 @@ option(saucer_desktop "Enable support for the desktop module" ON) # -------------------------------------------------------------------------------------------------------- set(CMAKE_POSITION_INDEPENDENT_CODE ON) -set(CMAKE_WINDOWS_EXPORT_ALL_SYMBOLS ON) + +set(CMAKE_C_VISIBILITY_PRESET hidden) +set(CMAKE_CXX_VISIBILITY_PRESET hidden) +set(CMAKE_VISIBILITY_INLINES_HIDDEN ON) # -------------------------------------------------------------------------------------------------------- # Setup library @@ -84,7 +87,7 @@ CPMFindPackage( NAME saucer VERSION 5.0.0 GIT_REPOSITORY "https://github.com/saucer/saucer" - OPTIONS "saucer_static OFF" + OPTIONS "saucer_static OFF" "CMAKE_WINDOWS_EXPORT_ALL_SYMBOLS ON" ) target_link_libraries(${PROJECT_NAME} PUBLIC saucer::saucer)