mirror of
https://github.com/IfcOpenShell/IfcOpenShell.git
synced 2026-09-21 14:23:53 +00:00
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 <noreply@anthropic.com>
This commit is contained in:
@@ -59,7 +59,8 @@ if (NOT CREATE_BUNDLE)
|
|||||||
set_target_properties(IfcParse PROPERTIES VERSION "${PROJECT_VERSION}" SOVERSION "${PROJECT_VERSION_MAJOR}.${PROJECT_VERSION_MINOR}")
|
set_target_properties(IfcParse PROPERTIES VERSION "${PROJECT_VERSION}" SOVERSION "${PROJECT_VERSION_MAJOR}.${PROJECT_VERSION_MINOR}")
|
||||||
endif()
|
endif()
|
||||||
if(WASM_BUILD)
|
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()
|
else()
|
||||||
target_link_libraries(IfcParse plugin ${Boost_LIBRARIES} ${BCRYPT_LIBRARIES})
|
target_link_libraries(IfcParse plugin ${Boost_LIBRARIES} ${BCRYPT_LIBRARIES})
|
||||||
endif()
|
endif()
|
||||||
|
|||||||
Reference in New Issue
Block a user