Fix linking for builds with -Wl,--as-needed

This commit is contained in:
Bruno Postle
2026-02-06 16:51:41 +00:00
parent 02fab6eee2
commit 1d5108f934
2 changed files with 2 additions and 0 deletions
+1
View File
@@ -15,6 +15,7 @@ target_link_libraries(
IfcGeom
IfcParse
Serializers
${kernel_libraries}
${OpenCASCADE_LIBRARIES}
${Boost_LIBRARIES}
${HDF5_LIBRARIES}
+1
View File
@@ -140,6 +140,7 @@ else()
target_link_libraries(ifcopenshell_wrapper PRIVATE ${IFCOPENSHELL_LIBRARIES} ${LIBSVGFILL})
endif()
target_link_libraries(ifcopenshell_wrapper PRIVATE ${CGAL_LIBRARIES})
target_link_libraries(ifcopenshell_wrapper PRIVATE IfcGeom ${kernel_libraries})
if((NOT WIN32) AND BUILD_SHARED_LIBS)
SET_INSTALL_RPATHS(ifcopenshell_wrapper "${IFCDIRS};${OCC_LIBRARY_DIR}")
endif()