aboutsummaryrefslogtreecommitdiff
path: root/ports/libxml2
diff options
context:
space:
mode:
authorKai Pastor <dg0yt@darc.de>2021-09-02 22:21:52 +0200
committerGitHub <noreply@github.com>2021-09-02 13:21:52 -0700
commit9f73bc1a0e71b8883f20cae72a4e63ce347a3493 (patch)
tree56793188593162588fe6e12874c2d505913509c8 /ports/libxml2
parentbff0e8fc31e4e00a9c2f51b84c9b43bc46478729 (diff)
downloadvcpkg-9f73bc1a0e71b8883f20cae72a4e63ce347a3493.tar.gz
vcpkg-9f73bc1a0e71b8883f20cae72a4e63ce347a3493.zip
Fix target_link_libraries on repeated inclusion of wrappers (#19120)
* Fix repeated inclusion of wrappers * x-add-version
Diffstat (limited to 'ports/libxml2')
-rw-r--r--ports/libxml2/vcpkg-cmake-wrapper.cmake8
-rw-r--r--ports/libxml2/vcpkg.json2
2 files changed, 5 insertions, 5 deletions
diff --git a/ports/libxml2/vcpkg-cmake-wrapper.cmake b/ports/libxml2/vcpkg-cmake-wrapper.cmake
index 9287c37e6..f80be639a 100644
--- a/ports/libxml2/vcpkg-cmake-wrapper.cmake
+++ b/ports/libxml2/vcpkg-cmake-wrapper.cmake
@@ -31,18 +31,18 @@ if(LibXml2_FOUND AND "@VCPKG_LIBRARY_LINKAGE@" STREQUAL "static" AND NOT ${ARGV0
if(CMAKE_SYSTEM_NAME STREQUAL "Linux")
list(APPEND LIBXML2_LIBRARIES m)
if(TARGET LibXml2::LibXml2)
- target_link_libraries(LibXml2::LibXml2 INTERFACE "m")
+ set_property(TARGET LibXml2::LibXml2 APPEND PROPERTY INTERFACE_LINK_LIBRARIES "m")
endif()
elseif(CMAKE_SYSTEM_NAME STREQUAL "Windows")
list(APPEND LIBXML2_LIBRARIES ws2_32)
if(TARGET LibXml2::LibXml2)
- target_link_libraries(LibXml2::LibXml2 INTERFACE "ws2_32")
+ set_property(TARGET LibXml2::LibXml2 APPEND PROPERTY INTERFACE_LINK_LIBRARIES "ws2_32")
endif()
endif()
if(TARGET LibXml2::LibXml2)
- target_link_libraries(LibXml2::LibXml2 INTERFACE "liblzma::liblzma" "ZLIB::ZLIB")
+ set_property(TARGET LibXml2::LibXml2 APPEND PROPERTY INTERFACE_LINK_LIBRARIES "liblzma::liblzma" "ZLIB::ZLIB")
if(TARGET Iconv::Iconv)
- target_link_libraries(LibXml2::LibXml2 INTERFACE "Iconv::Iconv")
+ set_property(TARGET LibXml2::LibXml2 APPEND PROPERTY INTERFACE_LINK_LIBRARIES "Iconv::Iconv")
endif()
endif()
cmake_policy(POP)
diff --git a/ports/libxml2/vcpkg.json b/ports/libxml2/vcpkg.json
index 228b43572..68cb1e3eb 100644
--- a/ports/libxml2/vcpkg.json
+++ b/ports/libxml2/vcpkg.json
@@ -1,7 +1,7 @@
{
"name": "libxml2",
"version-semver": "2.9.12",
- "port-version": 3,
+ "port-version": 4,
"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": [