Skip to content

Commit

Permalink
{cmake} Remove USING_STATIC_XERCES as this is not necessary since Xer…
Browse files Browse the repository at this point in the history
…cesC 3.2.0 (#317)
  • Loading branch information
SunBlack authored Dec 4, 2024
1 parent 9c864c2 commit d477c5b
Showing 1 changed file with 1 addition and 12 deletions.
13 changes: 1 addition & 12 deletions CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -77,7 +77,7 @@ if ( E57_BUILDING_SELF )
endif()

find_package( Threads REQUIRED )
find_package( XercesC REQUIRED )
find_package( XercesC 3.2 REQUIRED )

option( E57_BUILD_SHARED
"Compile E57Format as a shared library"
Expand Down Expand Up @@ -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 )

Expand Down

0 comments on commit d477c5b

Please sign in to comment.