Add link dependency on native build to resole example failure

This commit is contained in:
Thomas Krijnen
2026-08-13 05:13:35 +02:00
parent 13cc190849
commit 8cc36f0d4d
+3
View File
@@ -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)