2016-12-06 14:33:43 +01:00
|
|
|
include(vcpkg_common_functions)
|
|
|
|
|
2018-07-19 11:56:54 +02:00
|
|
|
vcpkg_from_github(
|
|
|
|
OUT_SOURCE_PATH SOURCE_PATH
|
|
|
|
REPO libssh2/libssh2
|
2019-08-24 13:43:57 -07:00
|
|
|
REF 42d37aa63129a1b2644bf6495198923534322d64
|
|
|
|
SHA512 e86c0787e2aa7be5e9f19356e543493e53c7d1b51b585c46facfb05f769e6491209f820b207bf594348f4760c492c32dda3fcc94fc0af93cb09c736492a8e231
|
2018-07-19 11:56:54 +02:00
|
|
|
HEAD_REF master
|
|
|
|
PATCHES "${CMAKE_CURRENT_LIST_DIR}/0001-Fix-UWP.patch"
|
2017-01-10 17:39:13 -08:00
|
|
|
)
|
2018-07-19 11:56:54 +02:00
|
|
|
|
2016-12-06 14:33:43 +01:00
|
|
|
vcpkg_configure_cmake(
|
|
|
|
SOURCE_PATH ${SOURCE_PATH}
|
|
|
|
OPTIONS
|
|
|
|
-DBUILD_EXAMPLES=OFF
|
|
|
|
-DBUILD_TESTING=OFF
|
|
|
|
-DENABLE_ZLIB_COMPRESSION=ON
|
|
|
|
OPTIONS_DEBUG
|
|
|
|
-DENABLE_DEBUG_LOGGING=OFF
|
|
|
|
)
|
|
|
|
|
|
|
|
vcpkg_install_cmake()
|
|
|
|
|
|
|
|
file(REMOVE_RECURSE ${CURRENT_PACKAGES_DIR}/debug/include)
|
|
|
|
file(REMOVE_RECURSE ${CURRENT_PACKAGES_DIR}/debug/lib/pkgconfig)
|
|
|
|
file(REMOVE_RECURSE ${CURRENT_PACKAGES_DIR}/debug/share)
|
|
|
|
file(REMOVE_RECURSE ${CURRENT_PACKAGES_DIR}/lib/pkgconfig)
|
|
|
|
file(REMOVE_RECURSE ${CURRENT_PACKAGES_DIR}/share)
|
|
|
|
|
2017-11-21 21:05:13 -08:00
|
|
|
vcpkg_fixup_cmake_targets(CONFIG_PATH lib/cmake/libssh2)
|
|
|
|
|
2016-12-06 14:33:43 +01:00
|
|
|
file(INSTALL ${CMAKE_CURRENT_LIST_DIR}/LICENSE DESTINATION ${CURRENT_PACKAGES_DIR}/share/libssh2 RENAME copyright)
|
|
|
|
|
2018-07-19 11:56:54 +02:00
|
|
|
vcpkg_copy_pdbs()
|