diff --git a/cmake/CMakeLists.txt b/cmake/CMakeLists.txt index 0c669d3ce0..81f0ca75d5 100644 --- a/cmake/CMakeLists.txt +++ b/cmake/CMakeLists.txt @@ -362,7 +362,9 @@ message(STATUS "Boost libraries found in ${Boost_LIBRARY_DIRS}") if(NOT MINIMAL_BUILD) # libxml2 is required for IFCXML (optional) and SVGFILL (mandatory) clear_wasm_sysroot() - find_package(LibXml2 REQUIRED) + if(IFCXML_SUPPORT) + find_package(LibXml2 REQUIRED) + endif() restore_wasm_sysroot() endif()