[libxml2] Fix target (#18714)

* fix LibXml2 target dependencies

* updated version files
This commit is contained in:
bucurb 2021-07-01 17:49:04 +01:00 committed by GitHub
parent 6d47a2faec
commit 7338d7ec1a
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
4 changed files with 10 additions and 2 deletions

View File

@ -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()

View File

@ -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": [

View File

@ -3710,7 +3710,7 @@
},
"libxml2": {
"baseline": "2.9.10",
"port-version": 7
"port-version": 8
},
"libxmlmm": {
"baseline": "0.6.0",

View File

@ -1,5 +1,10 @@
{
"versions": [
{
"git-tree": "b0cf9aec6fb5cd87ae6358e9015e92e9d113c1f1",
"version-semver": "2.9.10",
"port-version": 8
},
{
"git-tree": "f86ba7081b940af77e935875fbdf9cbf69446b9f",
"version-semver": "2.9.10",