mirror of
https://github.com/microsoft/vcpkg.git
synced 2024-11-25 07:29:07 +08:00
[libxml2] Fix vcpkg toolchain helper
This commit is contained in:
parent
6dbc38d3a0
commit
8d70abd134
@ -275,7 +275,12 @@ macro(find_package name)
|
||||
elseif("${name}" STREQUAL "LibXml2")
|
||||
_find_package(${ARGV})
|
||||
if(LibXml2_FOUND AND (CMAKE_SYSTEM_NAME STREQUAL "Windows" OR CMAKE_SYSTEM_NAME STREQUAL "WindowsStore"))
|
||||
list(APPEND LIBXML2_LIBRARIES libiconv libcharset ws2_32)
|
||||
list(APPEND LIBXML2_LIBRARIES
|
||||
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
|
||||
ws2_32)
|
||||
endif()
|
||||
else()
|
||||
_find_package(${ARGV})
|
||||
|
Loading…
Reference in New Issue
Block a user