Skip to content

Commit 1d5108f

Browse files
committed
Fix linking for builds with -Wl,--as-needed
1 parent 02fab6e commit 1d5108f

2 files changed

Lines changed: 2 additions & 0 deletions

File tree

src/ifcconvert/CMakeLists.txt

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -15,6 +15,7 @@ target_link_libraries(
1515
IfcGeom
1616
IfcParse
1717
Serializers
18+
${kernel_libraries}
1819
${OpenCASCADE_LIBRARIES}
1920
${Boost_LIBRARIES}
2021
${HDF5_LIBRARIES}

src/ifcwrap/CMakeLists.txt

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -140,6 +140,7 @@ else()
140140
target_link_libraries(ifcopenshell_wrapper PRIVATE ${IFCOPENSHELL_LIBRARIES} ${LIBSVGFILL})
141141
endif()
142142
target_link_libraries(ifcopenshell_wrapper PRIVATE ${CGAL_LIBRARIES})
143+
target_link_libraries(ifcopenshell_wrapper PRIVATE IfcGeom ${kernel_libraries})
143144
if((NOT WIN32) AND BUILD_SHARED_LIBS)
144145
SET_INSTALL_RPATHS(ifcopenshell_wrapper "${IFCDIRS};${OCC_LIBRARY_DIR}")
145146
endif()

0 commit comments

Comments
 (0)