From 1ac8a8c5e6bcfee9c9e841866c03f3de8a0665d3 Mon Sep 17 00:00:00 2001 From: SunBlack Date: Wed, 4 Dec 2024 14:14:53 +0100 Subject: [PATCH] Remove USING_STATIC_XERCES as this is not necessary anymore since XercesC 3.2.0 --- CMakeLists.txt | 13 +------------ 1 file changed, 1 insertion(+), 12 deletions(-) diff --git a/CMakeLists.txt b/CMakeLists.txt index 6a9f64b..2c8426c 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -77,7 +77,7 @@ if ( E57_BUILDING_SELF ) endif() find_package( Threads REQUIRED ) -find_package( XercesC REQUIRED ) +find_package( XercesC 3.2 CONFIG REQUIRED ) option( E57_BUILD_SHARED "Compile E57Format as a shared library" @@ -194,17 +194,6 @@ target_compile_definitions( E57Format # sanitizers include( Sanitizers ) -# xerces -if ( WIN32 ) - option( USING_STATIC_XERCES "Turn on if you are linking with Xerces as a static lib" OFF ) - if ( USING_STATIC_XERCES ) - target_compile_definitions( E57Format - PUBLIC - XERCES_STATIC_LIBRARY - ) - endif() -endif() - # Target Libraries target_link_libraries( E57Format PRIVATE XercesC::XercesC )