Skip to content

Commit

Permalink
- dont find expat if target already exists
Browse files Browse the repository at this point in the history
  • Loading branch information
fbergmann committed Jul 15, 2022
1 parent 2f66365 commit 6acbbf5
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -419,7 +419,9 @@ set(LIBSBML_XML_LIBRARY_LIBS)

if(WITH_EXPAT)

if(NOT TARGET EXPAT::EXPAT)
find_package(EXPAT REQUIRED)
endif()

add_definitions( -DUSE_EXPAT )
list(APPEND SWIG_EXTRA_ARGS -DUSE_EXPAT)
Expand Down

0 comments on commit 6acbbf5

Please sign in to comment.