aboutsummaryrefslogtreecommitdiff
path: root/ports/libxml2
diff options
context:
space:
mode:
authorbucurb <bobuc@microsoft.com>2021-07-01 17:49:04 +0100
committerGitHub <noreply@github.com>2021-07-01 09:49:04 -0700
commit7338d7ec1a92078cb5f9292f20445914587b6bd9 (patch)
treed7eb0dc455ecd041e50e00244646fbc071e0dc42 /ports/libxml2
parent6d47a2faecfc1b057b18b4b2c2b549384c24a9f9 (diff)
downloadvcpkg-7338d7ec1a92078cb5f9292f20445914587b6bd9.tar.gz
vcpkg-7338d7ec1a92078cb5f9292f20445914587b6bd9.zip
[libxml2] Fix target (#18714)
* fix LibXml2 target dependencies * updated version files
Diffstat (limited to 'ports/libxml2')
-rw-r--r--ports/libxml2/vcpkg-cmake-wrapper.cmake3
-rw-r--r--ports/libxml2/vcpkg.json2
2 files changed, 4 insertions, 1 deletions
diff --git a/ports/libxml2/vcpkg-cmake-wrapper.cmake b/ports/libxml2/vcpkg-cmake-wrapper.cmake
index 405b94670..31bab78f7 100644
--- a/ports/libxml2/vcpkg-cmake-wrapper.cmake
+++ b/ports/libxml2/vcpkg-cmake-wrapper.cmake
@@ -12,6 +12,9 @@ if(LibXml2_FOUND)
select_library_configurations(ICONV)
select_library_configurations(CHARSET)
list(APPEND LIBXML2_LIBRARIES ${LIBLZMA_LIBRARIES} ${ZLIB_LIBRARIES})
+ if(TARGET LibXml2::LibXml2)
+ target_link_libraries(LibXml2::LibXml2 INTERFACE "liblzma::liblzma" "ZLIB::ZLIB")
+ endif()
if(CMAKE_SYSTEM_NAME STREQUAL "Linux")
list(APPEND LIBXML2_LIBRARIES m)
endif()
diff --git a/ports/libxml2/vcpkg.json b/ports/libxml2/vcpkg.json
index 617e3a4a5..fbcd7b114 100644
--- a/ports/libxml2/vcpkg.json
+++ b/ports/libxml2/vcpkg.json
@@ -1,7 +1,7 @@
{
"name": "libxml2",
"version-semver": "2.9.10",
- "port-version": 7,
+ "port-version": 8,
"description": "Libxml2 is the XML C parser and toolkit developed for the Gnome project (but usable outside of the Gnome platform).",
"homepage": "https://xmlsoft.org/",
"dependencies": [