[cppzmq] Add draft feature (#14624)

* [cppzmq] Add draft feature

* Update ports/cppzmq/CONTROL
This commit is contained in:
NancyLi1013 2020-11-19 05:08:48 +08:00 committed by GitHub
parent f9990d2b4c
commit 97a2954d07
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 10 additions and 1 deletions

View File

@ -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

View File

@ -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()