From 97a2954d072b8b492c93d5cab7be80524f20d65c Mon Sep 17 00:00:00 2001 From: NancyLi1013 <46708020+NancyLi1013@users.noreply.github.com> Date: Thu, 19 Nov 2020 05:08:48 +0800 Subject: [PATCH] [cppzmq] Add draft feature (#14624) * [cppzmq] Add draft feature * Update ports/cppzmq/CONTROL --- ports/cppzmq/CONTROL | 4 ++++ ports/cppzmq/portfile.cmake | 7 ++++++- 2 files changed, 10 insertions(+), 1 deletion(-) diff --git a/ports/cppzmq/CONTROL b/ports/cppzmq/CONTROL index bec4b67c62..f148c1a773 100644 --- a/ports/cppzmq/CONTROL +++ b/ports/cppzmq/CONTROL @@ -1,5 +1,9 @@ Source: cppzmq Version: 4.7.1 +Port-Version: 1 Build-Depends: zeromq Homepage: https://github.com/zeromq/cppzmq Description: lightweight messaging kernel, C++ bindings + +Feature: draft +Description: Build and install draft diff --git a/ports/cppzmq/portfile.cmake b/ports/cppzmq/portfile.cmake index f8c2ed28d0..2789190b73 100644 --- a/ports/cppzmq/portfile.cmake +++ b/ports/cppzmq/portfile.cmake @@ -6,10 +6,15 @@ vcpkg_from_github( HEAD_REF master ) +vcpkg_check_features(OUT_FEATURE_OPTIONS FEATURE_OPTIONS + draft ENABLE_DRAFTS +) + vcpkg_configure_cmake( SOURCE_PATH ${SOURCE_PATH} PREFER_NINJA - OPTIONS -DCPPZMQ_BUILD_TESTS=OFF + OPTIONS ${FEATURE_OPTIONS} + -DCPPZMQ_BUILD_TESTS=OFF ) vcpkg_install_cmake()