fix: Add IfcGeom as a dependency of kernels target instead of the inverse

This commit is contained in:
Esteban DUGUEPEROUX
2026-01-22 18:24:43 +01:00
committed by Thomas Krijnen
parent a609bc61b9
commit 128fdcb62e
3 changed files with 6 additions and 3 deletions
+5 -1
View File
@@ -31,12 +31,16 @@ find_package(Eigen3 REQUIRED)
target_link_libraries(
IfcGeom
${kernel_libraries}
${mapping_libraries}
${CMAKE_THREAD_LIBS_INIT}
"Eigen3::Eigen"
${CGAL_LIBRARIES}
)
if(WITH_OPENCASCADE)
target_link_libraries(IfcGeom TKernel)
endif()
if(NOT WASM_BUILD)
target_link_libraries(IfcGeom IfcParse)
endif()
+1 -1
View File
@@ -14,7 +14,7 @@ foreach(kernel ${GEOMETRY_KERNELS})
PROPERTIES COMPILE_FLAGS "-DIFC_GEOM_EXPORTS" PUBLIC_HEADER "${IFCGEOM_H_FILES}"
)
list(APPEND kernel_libraries ${KERNEL_TARGET})
target_link_libraries(${KERNEL_TARGET} ${${KERNEL_UPPER}_LIBRARIES} Eigen3::Eigen)
target_link_libraries(${KERNEL_TARGET} ${${KERNEL_UPPER}_LIBRARIES} IfcGeom Eigen3::Eigen)
install(
TARGETS ${KERNEL_TARGET}
EXPORT ${IFCOPENSHELL_EXPORT_TARGETS}