@@ -91,35 +91,31 @@ set(ICEBERG_SOURCES
9191
9292set (ICEBERG_STATIC_BUILD_INTERFACE_LIBS)
9393set (ICEBERG_SHARED_BUILD_INTERFACE_LIBS)
94+ set (ICEBERG_SHARED_PRIVATE_BUILD_INTERFACE_LIBS)
9495set (ICEBERG_STATIC_INSTALL_INTERFACE_LIBS)
9596set (ICEBERG_SHARED_INSTALL_INTERFACE_LIBS)
9697
9798list (APPEND
9899 ICEBERG_STATIC_BUILD_INTERFACE_LIBS
99- nanoarrow::nanoarrow_static
100+ nanoarrow::nanoarrow
100101 nlohmann_json::nlohmann_json
101102 roaring::roaring
102103 spdlog::spdlog
103104 ZLIB::ZLIB)
104105list (APPEND
105- ICEBERG_SHARED_BUILD_INTERFACE_LIBS
106- nanoarrow::nanoarrow_shared
106+ ICEBERG_SHARED_PRIVATE_BUILD_INTERFACE_LIBS
107+ nanoarrow::nanoarrow
107108 nlohmann_json::nlohmann_json
108109 roaring::roaring
109110 spdlog::spdlog
110111 ZLIB::ZLIB)
111112list (APPEND
112113 ICEBERG_STATIC_INSTALL_INTERFACE_LIBS
113- "$<IF :$<BOOL :${NANOARROW_VENDORED} >,iceberg ::nanoarrow_static ,$< IF :$< TARGET_EXISTS : nanoarrow ::nanoarrow_static >, nanoarrow :: nanoarrow_static , nanoarrow :: nanoarrow_shared > >"
114- "$<IF :$<BOOL :${NLOHMANN_JSON_VENDORED} >,iceberg ::nlohmann_json ,$< IF :$< TARGET_EXISTS : nlohmann_json ::nlohmann_json >, nlohmann_json :: nlohmann_json , nlohmann_json :: nlohmann_json > >"
114+ "$<IF :$<BOOL :${NANOARROW_VENDORED} >,iceberg ::nanoarrow_static ,nanoarrow ::nanoarrow >"
115+ "$<IF :$<BOOL :${NLOHMANN_JSON_VENDORED} >,iceberg ::nlohmann_json ,nlohmann_json ::nlohmann_json >"
115116 "$<IF :$<BOOL :${CROARING_VENDORED} >,iceberg ::roaring ,roaring ::roaring >"
116- "$<IF :$<BOOL :${SPDLOG_VENDORED} >,iceberg ::spdlog ,spdlog ::spdlog >" )
117- list (APPEND
118- ICEBERG_SHARED_INSTALL_INTERFACE_LIBS
119- "$<IF :$<BOOL :${NANOARROW_VENDORED} >,iceberg ::nanoarrow_shared ,$<IF :$<TARGET_EXISTS :nanoarrow ::nanoarrow_shared >,nanoarrow ::nanoarrow_shared ,nanoarrow ::nanoarrow_static >>"
120- "$<IF :$<BOOL :${NLOHMANN_JSON_VENDORED} >,iceberg ::nlohmann_json ,$<IF :$<TARGET_EXISTS :nlohmann_json ::nlohmann_json >,nlohmann_json ::nlohmann_json ,nlohmann_json ::nlohmann_json >>"
121- "$<IF :$<BOOL :${CROARING_VENDORED} >,iceberg ::roaring ,roaring ::roaring >"
122- "$<IF :$<BOOL :${SPDLOG_VENDORED} >,iceberg ::spdlog ,spdlog ::spdlog >" )
117+ "$<IF :$<BOOL :${SPDLOG_VENDORED} >,iceberg ::spdlog ,spdlog ::spdlog >"
118+ ZLIB::ZLIB)
123119
124120add_iceberg_lib (iceberg
125121 SOURCES
@@ -128,6 +124,8 @@ add_iceberg_lib(iceberg
128124 ${ICEBERG_INCLUDES}
129125 SHARED_LINK_LIBS
130126 ${ICEBERG_SHARED_BUILD_INTERFACE_LIBS}
127+ SHARED_PRIVATE_LINK_LIBS
128+ ${ICEBERG_SHARED_PRIVATE_BUILD_INTERFACE_LIBS}
131129 STATIC_LINK_LIBS
132130 ${ICEBERG_STATIC_BUILD_INTERFACE_LIBS}
133131 STATIC_INSTALL_INTERFACE_LIBS
@@ -165,44 +163,38 @@ if(ICEBERG_BUILD_BUNDLE)
165163 # Libraries to link with exported libiceberg_bundle.{so,a}.
166164 set (ICEBERG_BUNDLE_STATIC_BUILD_INTERFACE_LIBS)
167165 set (ICEBERG_BUNDLE_SHARED_BUILD_INTERFACE_LIBS)
166+ set (ICEBERG_BUNDLE_SHARED_PRIVATE_BUILD_INTERFACE_LIBS)
168167 set (ICEBERG_BUNDLE_STATIC_INSTALL_INTERFACE_LIBS)
169168 set (ICEBERG_BUNDLE_SHARED_INSTALL_INTERFACE_LIBS)
170169
171170 list (APPEND
172171 ICEBERG_BUNDLE_STATIC_BUILD_INTERFACE_LIBS
173- "$<IF :$<TARGET_EXISTS :iceberg_static >,iceberg_static ,iceberg_shared >"
174- "$<IF :$<TARGET_EXISTS :Arrow ::arrow_static >,Arrow ::arrow_static ,Arrow ::arrow_shared >"
175- "$<IF :$<TARGET_EXISTS :Parquet ::parquet_static >,Parquet ::parquet_static ,Parquet ::parquet_shared >"
176- "$<IF :$<TARGET_EXISTS :avro -cpp ::avrocpp_static >,avro -cpp ::avrocpp_static ,avro -cpp ::avrocpp_shared >"
177- )
172+ iceberg_static
173+ Arrow::arrow_static
174+ Parquet::parquet_static
175+ avro-cpp::avrocpp_static)
178176 list (APPEND
179177 ICEBERG_BUNDLE_SHARED_BUILD_INTERFACE_LIBS
180- "$<IF :$<TARGET_EXISTS :iceberg_shared >,iceberg_shared ,iceberg_static >"
181- "$<IF :$<TARGET_EXISTS :Arrow ::arrow_shared >,Arrow ::arrow_shared ,Arrow ::arrow_static >"
182- "$<IF :$<TARGET_EXISTS :Parquet ::parquet_shared >,Parquet ::parquet_shared ,Parquet ::parquet_static >"
183- "$<IF :$<TARGET_EXISTS :avro -cpp ::avrocpp_shared >,avro -cpp ::avrocpp_shared ,avro -cpp ::avrocpp_static >"
184- )
185-
178+ iceberg_shared
179+ Arrow::arrow_shared
180+ Parquet::parquet_shared)
181+ list (APPEND ICEBERG_BUNDLE_SHARED_PRIVATE_BUILD_INTERFACE_LIBS nanoarrow::nanoarrow
182+ avro-cpp::avrocpp_static)
186183 list (APPEND
187184 ICEBERG_BUNDLE_STATIC_INSTALL_INTERFACE_LIBS
188- "$<IF :$<TARGET_EXISTS :iceberg ::iceberg_static >,iceberg ::iceberg_static ,iceberg ::iceberg_shared >"
189- "$<IF :$<BOOL :${ARROW_VENDORED} >,iceberg ::arrow_static ,$<IF :$<TARGET_EXISTS :Arrow ::arrow_static >,Arrow ::arrow_static ,Arrow ::arrow_shared >>"
190- "$<IF :$<BOOL :${ARROW_VENDORED} >,iceberg ::parquet_static ,$<IF :$<TARGET_EXISTS :Parquet ::parquet_static >,Parquet ::parquet_static ,Parquet ::parquet_shared >>"
191- "$<IF :$<BOOL :${AVRO_VENDORED} >,iceberg ::avrocpp_s ,$<IF :$<TARGET_EXISTS :avro -cpp ::avrocpp_static >,avro -cpp ::avrocpp_static ,avro -cpp ::avrocpp_shared >>"
192- )
193- list (APPEND
194- ICEBERG_BUNDLE_SHARED_INSTALL_INTERFACE_LIBS
195- "$<IF :$<TARGET_EXISTS :iceberg ::iceberg_shared >,iceberg ::iceberg_shared ,iceberg ::iceberg_static >"
196- "$<IF :$<BOOL :${ARROW_VENDORED} >,iceberg ::arrow_static ,$<IF :$<TARGET_EXISTS :Arrow ::arrow_shared >,Arrow ::arrow_shared ,Arrow ::arrow_static >>"
197- "$<IF :$<BOOL :${ARROW_VENDORED} >,iceberg ::parquet_static ,$<IF :$<TARGET_EXISTS :Parquet ::parquet_shared >,Parquet ::parquet_shared ,Parquet ::parquet_static >>"
198- "$<IF :$<BOOL :${AVRO_VENDORED} >,iceberg ::avrocpp_s ,$<IF :$<TARGET_EXISTS :avro -cpp ::avrocpp_shared >,avro -cpp ::avrocpp_shared ,avro -cpp ::avrocpp_static >>"
199- )
185+ iceberg::iceberg_static
186+ "$<IF :$<BOOL :${ARROW_VENDORED} >,iceberg ::arrow_shared ,Arrow ::arrow_shared >"
187+ "$<IF :$<BOOL :${ARROW_VENDORED} >,iceberg ::parquet_shared ,Parquet ::parquet_shared >"
188+ "$<IF :$<BOOL :${AVRO_VENDORED} >,iceberg ::avrocpp_s ,avro -cpp ::avrocpp_static >" )
189+ list (APPEND ICEBERG_BUNDLE_SHARED_INSTALL_INTERFACE_LIBS iceberg::iceberg_shared)
200190
201191 add_iceberg_lib (iceberg_bundle
202192 SOURCES
203193 ${ICEBERG_BUNDLE_SOURCES}
204194 SHARED_LINK_LIBS
205195 ${ICEBERG_BUNDLE_SHARED_BUILD_INTERFACE_LIBS}
196+ SHARED_PRIVATE_LINK_LIBS
197+ ${ICEBERG_BUNDLE_SHARED_PRIVATE_BUILD_INTERFACE_LIBS}
206198 STATIC_LINK_LIBS
207199 ${ICEBERG_BUNDLE_STATIC_BUILD_INTERFACE_LIBS}
208200 STATIC_INSTALL_INTERFACE_LIBS
0 commit comments