2017-10-24 00:04:00 +08:00
|
|
|
vcpkg_from_github(
|
|
|
|
OUT_SOURCE_PATH SOURCE_PATH
|
|
|
|
REPO zeromq/cppzmq
|
2023-09-29 13:26:33 +08:00
|
|
|
REF "v${VERSION}"
|
|
|
|
SHA512 4a4f3c2a270b9b21591b08a81f2ab6a72693af213c115f2c0aa5b737fd0363d09dba92437f48268ff982e6c27d6830f79244599bd9198e3402c6cca566cea27a
|
2017-10-24 00:04:00 +08:00
|
|
|
HEAD_REF master
|
2016-11-01 16:32:25 +08:00
|
|
|
)
|
|
|
|
|
2020-11-19 05:08:48 +08:00
|
|
|
vcpkg_check_features(OUT_FEATURE_OPTIONS FEATURE_OPTIONS
|
2021-07-21 01:24:58 +08:00
|
|
|
FEATURES
|
|
|
|
draft ENABLE_DRAFTS
|
2020-11-19 05:08:48 +08:00
|
|
|
)
|
|
|
|
|
2021-10-06 07:14:20 +08:00
|
|
|
vcpkg_cmake_configure(
|
|
|
|
SOURCE_PATH "${SOURCE_PATH}"
|
2020-11-19 05:08:48 +08:00
|
|
|
OPTIONS ${FEATURE_OPTIONS}
|
|
|
|
-DCPPZMQ_BUILD_TESTS=OFF
|
2018-04-18 06:37:46 +08:00
|
|
|
)
|
|
|
|
|
2021-10-06 07:14:20 +08:00
|
|
|
vcpkg_cmake_install()
|
2018-04-18 06:37:46 +08:00
|
|
|
|
2021-10-06 07:14:20 +08:00
|
|
|
vcpkg_cmake_config_fixup(CONFIG_PATH share/cmake/cppzmq)
|
2023-01-24 16:46:36 +08:00
|
|
|
vcpkg_fixup_pkgconfig()
|
2018-04-18 06:37:46 +08:00
|
|
|
|
2021-10-06 07:14:20 +08:00
|
|
|
file(REMOVE_RECURSE "${CURRENT_PACKAGES_DIR}/debug" "${CURRENT_PACKAGES_DIR}/share/${PORT}/libzmq-pkg-config")
|
2016-11-01 16:32:25 +08:00
|
|
|
|
|
|
|
# Handle copyright
|
2023-09-29 13:26:33 +08:00
|
|
|
vcpkg_install_copyright(FILE_LIST "${SOURCE_PATH}/LICENSE")
|