aboutsummaryrefslogtreecommitdiff
path: root/ports/libkml/fix-expat.patch
diff options
context:
space:
mode:
authorNancyLi1013 <46708020+NancyLi1013@users.noreply.github.com>2020-08-17 23:33:44 +0800
committerGitHub <noreply@github.com>2020-08-17 08:33:44 -0700
commitd6285bc24b2e48da2f5e057fc759aff7c2b3b0af (patch)
tree0ae728a70e64d9758f6a918e515171f83424116b /ports/libkml/fix-expat.patch
parent5dd2b6736b7397e740d54ec2d748b56bd56350e9 (diff)
downloadvcpkg-d6285bc24b2e48da2f5e057fc759aff7c2b3b0af.tar.gz
vcpkg-d6285bc24b2e48da2f5e057fc759aff7c2b3b0af.zip
[expat] Update the version to 2.2.9 (add support for uwp) (#9146)
* [expat] Update the version to 2.2.9(support uwp) * [readosm] Fix expat.lib cannot be found * Remove expat:arm-uwp and expat:x64-uwp from fail list in ci.baseline.txt * [apr-util,io2d,skia] Fix expat cannot be found and also update expat * [many ports] Add supports and fix the regressions * Fix new regressions * Fix typo * [io2d] Update expat patch * [io2d,libkml,skia] Fix expat cannot find and also fix typo * [expat] Remove usage * [libkml,vtk] Update expat patch and fix static build * [wxwidgets] Fix static build caused by expat cannot found * Update as review suggestion * Add Port-Version * Remove evpp:x64-osx=fail from ci.baseline.txt * [wxwidgest] Remove unnecessary spaces * [itk] Fix expat cannot be found * fix cmake test port * [wxwidgets] Update Port-Version Co-authored-by: Nicole Mazzuca <mazzucan@outlook.com>
Diffstat (limited to 'ports/libkml/fix-expat.patch')
-rw-r--r--ports/libkml/fix-expat.patch20
1 files changed, 20 insertions, 0 deletions
diff --git a/ports/libkml/fix-expat.patch b/ports/libkml/fix-expat.patch
new file mode 100644
index 000000000..e4a09d187
--- /dev/null
+++ b/ports/libkml/fix-expat.patch
@@ -0,0 +1,20 @@
+diff --git a/CMakeLists.txt b/CMakeLists.txt
+index 9728ead..f9e8051 100644
+--- a/CMakeLists.txt
++++ b/CMakeLists.txt
+@@ -93,8 +93,13 @@ set(MINIZIP_DEPENDS "" CACHE INTERNAL "MINIZIP_DEPENDS")
+
+ set(LIBKML_TARGETS)
+
+-find_package(EXPAT)
+-if(EXPAT_FOUND)
++find_package(expat CONFIG REQUIRED)
++if(WIN32 AND NOT MINGW)
++ set(EXPAT_LIBRARY expat::libexpat)
++else()
++ set(EXPAT_LIBRARY expat::expat)
++endif()
++if(EXPAT_LIBRARY)
+ include_directories(${EXPAT_INCLUDE_DIR})
+ else()
+ include(External_expat)