Skip to content

Commit 0490dfd

Browse files
committed
event-lib-plugins: fix symbol export visibility
Co-developed-by: Gemini 2.5 Pro
1 parent be7df0d commit 0490dfd

1 file changed

Lines changed: 4 additions & 0 deletions

File tree

lib/event-libs/CMakeLists.txt

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -31,6 +31,10 @@ macro(create_evlib_plugin PLUGIN_NAME MAIN_SRC PLUGIN_HDR EVLIB)
3131
source_group("Headers Private" FILES ${PLUGIN_HDR})
3232
source_group("Sources" FILES ${MAIN_SRC})
3333
add_library(websockets-${PLUGIN_NAME} SHARED ${MAIN_SRC} ${PLUGIN_HDR})
34+
if (LWS_HAVE_VISIBILITY)
35+
set_target_properties(websockets-${PLUGIN_NAME} PROPERTIES
36+
C_VISIBILITY_PRESET default)
37+
endif()
3438

3539
if (APPLE)
3640
set_property(TARGET websockets-${PLUGIN_NAME} PROPERTY MACOSX_RPATH YES)

0 commit comments

Comments
 (0)