From dbf6a1dda986f7e4109db12ad6b4e142cd8272ac Mon Sep 17 00:00:00 2001 From: Thomas Krijnen Date: Tue, 31 Aug 2021 10:54:46 +0200 Subject: [PATCH] libxml2 no longer optional --- cmake/CMakeLists.txt | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/cmake/CMakeLists.txt b/cmake/CMakeLists.txt index d032ebc434..ef8eceaba3 100644 --- a/cmake/CMakeLists.txt +++ b/cmake/CMakeLists.txt @@ -195,8 +195,10 @@ if(USE_MMAP) add_definitions(-DUSE_MMAP) endif() +# libxml2 is required for IFCXML (optional) and SVGFILL (mandatory) +find_package(LibXml2 REQUIRED) + if (IFCXML_SUPPORT) - find_package(LibXml2 REQUIRED) add_definitions(-DWITH_IFCXML) endif() @@ -205,7 +207,6 @@ MESSAGE(STATUS "Boost include files found in ${Boost_INCLUDE_DIRS}") MESSAGE(STATUS "Boost libraries found in ${Boost_LIBRARY_DIRS}") - # Usage: # set(SOME_LIRARIES foo bar) # add_debug_variants(SOME_LIRARIES "${SOME_LIRARIES}" d)