File tree Expand file tree Collapse file tree 1 file changed +22
-2
lines changed Expand file tree Collapse file tree 1 file changed +22
-2
lines changed Original file line number Diff line number Diff line change @@ -99,7 +99,17 @@ add_iceberg_lib(iceberg
9999 STATIC_INSTALL_INTERFACE_LIBS
100100 ${ICEBERG_STATIC_INSTALL_INTERFACE_LIBS}
101101 SHARED_INSTALL_INTERFACE_LIBS
102- ${ICEBERG_SHARED_INSTALL_INTERFACE_LIBS} )
102+ ${ICEBERG_SHARED_INSTALL_INTERFACE_LIBS}
103+ OUTPUTS
104+ ICEBERG_LIBRARIES)
105+
106+ foreach (LIB_TARGET ${ICEBERG_LIBRARIES} )
107+ target_compile_definitions (${LIB_TARGET} PRIVATE ICEBERG_EXPORTING)
108+ endforeach ()
109+
110+ if (ICEBERG_BUILD_STATIC)
111+ target_compile_definitions (iceberg_static PUBLIC ICEBERG_STATIC)
112+ endif ()
103113
104114iceberg_install_all_headers(iceberg)
105115
@@ -168,7 +178,17 @@ if(ICEBERG_BUILD_BUNDLE)
168178 STATIC_INSTALL_INTERFACE_LIBS
169179 ${ICEBERG_BUNDLE_STATIC_INSTALL_INTERFACE_LIBS}
170180 SHARED_INSTALL_INTERFACE_LIBS
171- ${ICEBERG_BUNDLE_SHARED_INSTALL_INTERFACE_LIBS} )
181+ ${ICEBERG_BUNDLE_SHARED_INSTALL_INTERFACE_LIBS}
182+ OUTPUTS
183+ ICEBERG_BUNDLE_LIBRARIES)
184+
185+ foreach (LIB_TARGET ${ICEBERG_BUNDLE_LIBRARIES} )
186+ target_compile_definitions (${LIB_TARGET} PRIVATE ICEBERG_BUNDLE_EXPORTING)
187+ endforeach ()
188+
189+ if (ICEBERG_BUILD_STATIC)
190+ target_compile_definitions (iceberg_bundle_static PUBLIC ICEBERG_BUNDLE_STATIC)
191+ endif ()
172192
173193 add_subdirectory (arrow)
174194 add_subdirectory (avro)
You can’t perform that action at this time.
0 commit comments