Skip to content

Commit

Permalink
fix(cmake): symbol exports
Browse files Browse the repository at this point in the history
  • Loading branch information
Curve committed Jan 1, 2025
1 parent 7548b4b commit ee67190
Showing 1 changed file with 5 additions and 2 deletions.
7 changes: 5 additions & 2 deletions CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down Expand Up @@ -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)
Expand Down

0 comments on commit ee67190

Please sign in to comment.