From e389fb6145befbe0b4bdbdb2d9298e36bd5fcd3e Mon Sep 17 00:00:00 2001 From: Dion Moult Date: Thu, 17 Sep 2026 15:53:04 +1000 Subject: [PATCH] cmake: give the wasm IfcParse its Boost headers back ae2f27c3a replaced the global include_directories(${Boost_INCLUDE_DIRS}) with a Boost::headers target appended to Boost_LIBRARIES. The wasm branch of IfcParse's link line never included Boost_LIBRARIES, so it lost the include path and the Pyodide build has failed since with src/ifcparse/exception.h:25:10: fatal error: 'boost/lexical_cast.hpp' file not found Nobody noticed because no Pyodide build had run since 2026-08-28. Co-Authored-By: Claude Fable 5.1 --- src/ifcparse/CMakeLists.txt | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/ifcparse/CMakeLists.txt b/src/ifcparse/CMakeLists.txt index d665f91ab4..765da44b33 100644 --- a/src/ifcparse/CMakeLists.txt +++ b/src/ifcparse/CMakeLists.txt @@ -59,7 +59,8 @@ if (NOT CREATE_BUNDLE) set_target_properties(IfcParse PROPERTIES VERSION "${PROJECT_VERSION}" SOVERSION "${PROJECT_VERSION_MAJOR}.${PROJECT_VERSION_MINOR}") endif() if(WASM_BUILD) - target_link_libraries(IfcParse plugin ${BCRYPT_LIBRARIES}) + # No Boost link libraries for wasm, but the headers are still needed. + target_link_libraries(IfcParse plugin Boost::headers ${BCRYPT_LIBRARIES}) else() target_link_libraries(IfcParse plugin ${Boost_LIBRARIES} ${BCRYPT_LIBRARIES}) endif()