From c57554a07e3d739e285b0dc7f647831368b34b8c Mon Sep 17 00:00:00 2001 From: Andrej730 Date: Thu, 6 Aug 2026 16:09:56 +0500 Subject: [PATCH] ifcwrap/cmake: dont link against geom kernels Produces errors in wasm builds - we want to be able to load the wrapper first and all other dependencies should be pluggable. But loading wrapper first failed, because it depended on the kernels. Loading kernels first would also fail, since OCCT kernel is using using some symbols from core (`ifcopenshell::exception`) and in wasm they have to be resolved all during `dlopen`. --- src/ifcwrap/CMakeLists.txt | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/ifcwrap/CMakeLists.txt b/src/ifcwrap/CMakeLists.txt index 01fe458792..4a1f843706 100644 --- a/src/ifcwrap/CMakeLists.txt +++ b/src/ifcwrap/CMakeLists.txt @@ -191,7 +191,7 @@ if(IFCOPENSHELL_IFCWRAP_STANDALONE) set(_ifcwrap_swig_depends "") else() set(_ifcwrap_ifcopenshell_libraries ${IFCOPENSHELL_LIBRARIES}) - set(_ifcwrap_geometry_libraries IfcGeom ${kernel_libraries}) + set(_ifcwrap_geometry_libraries IfcGeom) set(_ifcwrap_cgal_libraries ${CGAL_LIBRARIES}) set(_ifcwrap_swig_depends ${IFCOPENSHELL_LIBRARIES}) endif()