mirror of
https://github.com/microsoft/vcpkg.git
synced 2024-12-28 03:10:57 +08:00
[libxml2] Apply fixes to the target of libxml2 (#9636)
This commit is contained in:
parent
a3b9437674
commit
45d31c931a
@ -1,5 +1,5 @@
|
||||
Source: libxml2
|
||||
Version: 2.9.9-4
|
||||
Version: 2.9.9-5
|
||||
Homepage: https://xmlsoft.org/
|
||||
Description: Libxml2 is the XML C parser and toolkit developed for the Gnome project (but usable outside of the Gnome platform)
|
||||
Build-Depends: zlib, libiconv, liblzma
|
||||
|
@ -12,6 +12,13 @@ if(LibXml2_FOUND)
|
||||
debug ${_VCPKG_INSTALLED_DIR}/${VCPKG_TARGET_TRIPLET}/debug/lib/libcharset.lib
|
||||
optimized ${_VCPKG_INSTALLED_DIR}/${VCPKG_TARGET_TRIPLET}/lib/libcharset.lib
|
||||
ws2_32)
|
||||
if(TARGET LibXml2::LibXml2)
|
||||
target_link_libraries(LibXml2::LibXml2 INTERFACE
|
||||
debug ${_VCPKG_INSTALLED_DIR}/${VCPKG_TARGET_TRIPLET}/debug/lib/libiconv.lib
|
||||
optimized ${_VCPKG_INSTALLED_DIR}/${VCPKG_TARGET_TRIPLET}/lib/libiconv.lib
|
||||
debug ${_VCPKG_INSTALLED_DIR}/${VCPKG_TARGET_TRIPLET}/debug/lib/libcharset.lib
|
||||
optimized ${_VCPKG_INSTALLED_DIR}/${VCPKG_TARGET_TRIPLET}/lib/libcharset.lib)
|
||||
endif()
|
||||
elseif(CMAKE_SYSTEM_NAME STREQUAL "Linux")
|
||||
list(APPEND LIBXML2_LIBRARIES m)
|
||||
endif()
|
||||
|
Loading…
x
Reference in New Issue
Block a user