diff options
| author | NancyLi1013 <46708020+NancyLi1013@users.noreply.github.com> | 2020-11-19 05:08:48 +0800 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2020-11-18 13:08:48 -0800 |
| commit | 97a2954d072b8b492c93d5cab7be80524f20d65c (patch) | |
| tree | 825053bfe1b00942ff10594b316a5313a785e7bd | |
| parent | f9990d2b4ce9d63f312ad51a550f842a5829dc26 (diff) | |
| download | vcpkg-97a2954d072b8b492c93d5cab7be80524f20d65c.tar.gz vcpkg-97a2954d072b8b492c93d5cab7be80524f20d65c.zip | |
[cppzmq] Add draft feature (#14624)
* [cppzmq] Add draft feature
* Update ports/cppzmq/CONTROL
| -rw-r--r-- | ports/cppzmq/CONTROL | 4 | ||||
| -rw-r--r-- | ports/cppzmq/portfile.cmake | 7 |
2 files changed, 10 insertions, 1 deletions
diff --git a/ports/cppzmq/CONTROL b/ports/cppzmq/CONTROL index bec4b67c6..f148c1a77 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 f8c2ed28d..2789190b7 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() |
