From 8cc36f0d4dced66655daa40c1f3fd200eaa1ac3f Mon Sep 17 00:00:00 2001 From: Thomas Krijnen Date: Thu, 13 Aug 2026 05:13:35 +0200 Subject: [PATCH] Add link dependency on native build to resole example failure --- src/ifcgeom/serialization/CMakeLists.txt | 3 +++ 1 file changed, 3 insertions(+) diff --git a/src/ifcgeom/serialization/CMakeLists.txt b/src/ifcgeom/serialization/CMakeLists.txt index 498be6e4f8..c03a07f2c9 100644 --- a/src/ifcgeom/serialization/CMakeLists.txt +++ b/src/ifcgeom/serialization/CMakeLists.txt @@ -17,6 +17,9 @@ set_target_properties(geometry_serializer PROPERTIES LIBRARY_OUTPUT_DIRECTORY "${geometry_serialization_plugin_runtime_dir}" ) target_link_libraries(geometry_serializer plugin IfcGeom IfcParse ${OpenCASCADE_LIBRARIES}) +if(NOT WASM_BUILD) + target_link_libraries(geometry_serializer geometry_kernel_opencascade) +endif() set(IFCOPENSHELL_LIBRARIES ${IFCOPENSHELL_LIBRARIES} "geometry_serializer") set(IFCOPENSHELL_LIBRARIES ${IFCOPENSHELL_LIBRARIES} PARENT_SCOPE)