From 253918c1007a072c6a1474fd39fb39630e766d9e Mon Sep 17 00:00:00 2001 From: Andrej730 Date: Thu, 6 Aug 2026 17:40:59 +0500 Subject: [PATCH] serialization/cmake: remove dependency on `geometry_kernel_opencascade` To fix wrapper depending on `ifcopenshell.geometry.kernel.opencascade.so` plugin, which breaks wasm module import (wrapper imported first and it fails because occt kernel isn't loaded yet and loading kernel first since it needs some symbols from the wrapper). `geometry_serializer` seems to need `OpenCascadeConversionResult.h` from the kernel just to be able to refer to structs (`ConversionResultShape`, `OpenCascadeShape`) and include with relative path already allows it. --- src/ifcgeom/Serialization/CMakeLists.txt | 1 - 1 file changed, 1 deletion(-) diff --git a/src/ifcgeom/Serialization/CMakeLists.txt b/src/ifcgeom/Serialization/CMakeLists.txt index 90317141e5..6aab9fa9d5 100644 --- a/src/ifcgeom/Serialization/CMakeLists.txt +++ b/src/ifcgeom/Serialization/CMakeLists.txt @@ -17,7 +17,6 @@ set_target_properties(geometry_serializer PROPERTIES LIBRARY_OUTPUT_DIRECTORY "${geometry_serialization_plugin_runtime_dir}" ) target_link_libraries(geometry_serializer plugin IfcGeom IfcParse ${OpenCASCADE_LIBRARIES}) -target_link_libraries(geometry_serializer geometry_kernel_opencascade) set(IFCOPENSHELL_LIBRARIES ${IFCOPENSHELL_LIBRARIES} "geometry_serializer") set(IFCOPENSHELL_LIBRARIES ${IFCOPENSHELL_LIBRARIES} PARENT_SCOPE)