cmake - search for LibXml2 only with IFCXML_SUPPORT #2035

This commit is contained in:
Andrej730
2025-08-13 13:59:34 +05:00
parent 9e5b667380
commit 8d3b8b24f8
+3 -1
View File
@@ -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()