From 8d3b8b24f83c130213f0e8f3ff768961402ba5db Mon Sep 17 00:00:00 2001 From: Andrej730 Date: Wed, 13 Aug 2025 13:59:34 +0500 Subject: [PATCH] cmake - search for LibXml2 only with IFCXML_SUPPORT #2035 --- cmake/CMakeLists.txt | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) 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()