Skip to content

Commit

Permalink
Merge pull request #685 from dstoup/fix-libkml-expat-support
Browse files Browse the repository at this point in the history
Fix libkmls expat support based on CMake find_package
  • Loading branch information
dstoup authored May 19, 2021
2 parents 623dd0e + 37d3a31 commit 9ebf246
Showing 1 changed file with 5 additions and 5 deletions.
10 changes: 5 additions & 5 deletions CMake/External_libkml.cmake
Original file line number Diff line number Diff line change
@@ -1,13 +1,13 @@

# Use the expat library that comes with Unix systems, else go ahead and build
# it on windows.
if(WIN32)
# Find expat if missing, go ahead and build it.
find_package(EXPAT)
if (EXPAT_FOUND)
set(libkml_use_external_expat
-DLIBKML_USE_EXTERNAL_EXPAT:BOOL=OFF
-DLIBKML_USE_EXTERNAL_EXPAT:BOOL=ON
)
else()
set(libkml_use_external_expat
-DLIBKML_USE_EXTERNAL_EXPAT:BOOL=ON
-DLIBKML_USE_EXTERNAL_EXPAT:BOOL=OFF
)
endif()

Expand Down

0 comments on commit 9ebf246

Please sign in to comment.