2016-11-01 16:32:25 +08:00
|
|
|
include(vcpkg_common_functions)
|
2017-10-24 00:04:00 +08:00
|
|
|
|
|
|
|
vcpkg_from_github(
|
|
|
|
OUT_SOURCE_PATH SOURCE_PATH
|
|
|
|
REPO zeromq/cppzmq
|
2019-08-03 01:26:40 +08:00
|
|
|
REF v4.4.1
|
|
|
|
SHA512 5178a24413e44a6d99e57db7c9859c72279304272baa0e1fb810174cdf592cb567cab98428ef3ab611042bdf4bc506867421662409d1f0d82c233cb83ebdb801
|
2017-10-24 00:04:00 +08:00
|
|
|
HEAD_REF master
|
2016-11-01 16:32:25 +08:00
|
|
|
)
|
|
|
|
|
2018-04-18 06:37:46 +08:00
|
|
|
vcpkg_configure_cmake(
|
|
|
|
SOURCE_PATH ${SOURCE_PATH}
|
|
|
|
PREFER_NINJA
|
2018-12-05 10:10:35 +08:00
|
|
|
OPTIONS -DCPPZMQ_BUILD_TESTS=OFF
|
2018-04-18 06:37:46 +08:00
|
|
|
)
|
|
|
|
|
|
|
|
vcpkg_install_cmake()
|
|
|
|
|
|
|
|
vcpkg_fixup_cmake_targets(CONFIG_PATH share/cmake/cppzmq)
|
|
|
|
|
2018-12-05 10:10:35 +08:00
|
|
|
file(REMOVE_RECURSE ${CURRENT_PACKAGES_DIR}/debug ${CURRENT_PACKAGES_DIR}/share/cppzmq/libzmq-pkg-config)
|
2016-11-01 16:32:25 +08:00
|
|
|
|
|
|
|
# Handle copyright
|
|
|
|
file(COPY ${SOURCE_PATH}/LICENSE DESTINATION ${CURRENT_PACKAGES_DIR}/share/cppzmq)
|
|
|
|
file(RENAME ${CURRENT_PACKAGES_DIR}/share/cppzmq/LICENSE ${CURRENT_PACKAGES_DIR}/share/cppzmq/copyright)
|