File tree Expand file tree Collapse file tree 2 files changed +7
-4
lines changed
Expand file tree Collapse file tree 2 files changed +7
-4
lines changed Original file line number Diff line number Diff line change @@ -152,10 +152,6 @@ function(add_iceberg_lib LIB_NAME)
152152
153153 string (TOUPPER ${LIB_NAME} VISIBILITY_NAME)
154154 target_compile_definitions (${LIB_NAME} _shared PRIVATE ${VISIBILITY_NAME} _EXPORTING )
155- set_target_properties (${LIB_NAME} _shared
156- PROPERTIES C_VISIBILITY_PRESET hidden CXX_VISIBILITY_PRESET
157- hidden
158- VISIBILITY_INLINES_HIDDEN 1 )
159155
160156 install (TARGETS ${LIB_NAME} _shared
161157 EXPORT iceberg_targets
Original file line number Diff line number Diff line change @@ -135,6 +135,13 @@ add_iceberg_lib(iceberg
135135 OUTPUTS
136136 ICEBERG_LIBRARIES )
137137
138+ if (ICEBERG_BUILD_SHARED)
139+ set_target_properties (iceberg_shared
140+ PROPERTIES C_VISIBILITY_PRESET hidden
141+ CXX_VISIBILITY_PRESET hidden VISIBILITY_INLINES_HIDDEN
142+ 1 )
143+ endif ()
144+
138145iceberg_install_all_headers (iceberg )
139146
140147add_subdirectory (catalog )
You can’t perform that action at this time.
0 commit comments