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 d406cde
Showing 1 changed file with 8 additions and 2 deletions.
10 changes: 8 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,10 @@ 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"
"CMAKE_VISIBILITY_INLINES_HIDDEN OFF"
"CMAKE_CXX_VISIBILITY_PRESET default"
)

target_link_libraries(${PROJECT_NAME} PUBLIC saucer::saucer)
Expand Down

0 comments on commit d406cde

Please sign in to comment.