mirror of
https://github.com/microsoft/vcpkg.git
synced 2024-12-05 06:59:10 +08:00
d6285bc24b
* [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>
19 lines
654 B
Diff
19 lines
654 B
Diff
diff --git a/XML/CMakeLists.txt b/XML/CMakeLists.txt
|
|
index d4a502a..780f5d0 100644
|
|
--- a/XML/CMakeLists.txt
|
|
+++ b/XML/CMakeLists.txt
|
|
@@ -23,7 +23,12 @@ endif()
|
|
# If POCO_UNBUNDLED is enabled we try to find the required packages
|
|
# The configuration will fail if the packages are not found
|
|
if (POCO_UNBUNDLED)
|
|
- find_package(EXPAT REQUIRED)
|
|
+ find_package(expat CONFIG REQUIRED)
|
|
+ if(WIN32 AND NOT MINGW)
|
|
+ set(EXPAT_LIBRARIES expat::libexpat)
|
|
+ else()
|
|
+ set(EXPAT_LIBRARIES expat::expat)
|
|
+ endif()
|
|
set(SYSLIBS ${SYSLIBS} ${EXPAT_LIBRARIES})
|
|
include_directories(${EXPAT_INCLUDE_DIRS})
|
|
else()
|