mirror of
https://github.com/microsoft/vcpkg.git
synced 2024-11-30 12:51:39 +08:00
68a2b4c766
* [libxml2] Update to 2.9.9 Fix #5177 * [libxml2] Fix static build * [libxml2] Modernize * [libxml2] Use vcpkg_from_github * [libxml2] Get version info from configure.ac * [libxml2] Install xmlversion.h * [libxml2] Improve port file * [libxml2] Move version.h generation into CMakeLists.txt * [libxml2] Fix misspelled version header * [libxml2] Add UWP support
19 lines
796 B
CMake
19 lines
796 B
CMake
_find_package(${ARGS})
|
|
if(LibXml2_FOUND)
|
|
find_package(LibLZMA)
|
|
find_package(ZLIB)
|
|
|
|
list(APPEND LIBXML2_LIBRARIES ${LIBLZMA_LIBRARIES} ${ZLIB_LIBRARIES})
|
|
|
|
if(CMAKE_SYSTEM_NAME STREQUAL "Windows" OR CMAKE_SYSTEM_NAME STREQUAL "WindowsStore")
|
|
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)
|
|
elseif(CMAKE_SYSTEM_NAME STREQUAL "Linux")
|
|
list(APPEND LIBXML2_LIBRARIES m)
|
|
endif()
|
|
endif()
|