mirror of
https://github.com/IfcOpenShell/IfcOpenShell.git
synced 2026-09-25 09:32:37 +00:00
cmake - search for LibXml2 only with IFCXML_SUPPORT #2035
This commit is contained in:
@@ -362,7 +362,9 @@ message(STATUS "Boost libraries found in ${Boost_LIBRARY_DIRS}")
|
|||||||
if(NOT MINIMAL_BUILD)
|
if(NOT MINIMAL_BUILD)
|
||||||
# libxml2 is required for IFCXML (optional) and SVGFILL (mandatory)
|
# libxml2 is required for IFCXML (optional) and SVGFILL (mandatory)
|
||||||
clear_wasm_sysroot()
|
clear_wasm_sysroot()
|
||||||
find_package(LibXml2 REQUIRED)
|
if(IFCXML_SUPPORT)
|
||||||
|
find_package(LibXml2 REQUIRED)
|
||||||
|
endif()
|
||||||
restore_wasm_sysroot()
|
restore_wasm_sysroot()
|
||||||
endif()
|
endif()
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user