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()