diff options
| author | Jack·Boos·Yu <47264268+JackBoosY@users.noreply.github.com> | 2020-05-27 11:42:09 +0800 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2020-05-26 20:42:09 -0700 |
| commit | 323cd68f5a4ff65911ed68715a234f7f4603cf61 (patch) | |
| tree | 9dae77666461eba71fb01600d17d66dbba464be2 | |
| parent | c3cfb02466318e328c7e9ef56ba28bcafce96cfd (diff) | |
| download | vcpkg-323cd68f5a4ff65911ed68715a234f7f4603cf61.tar.gz vcpkg-323cd68f5a4ff65911ed68715a234f7f4603cf61.zip | |
[seal] Disable SEAL_USE_MSGSL and add default feature zlib (#11588)
| -rw-r--r-- | ports/seal/CONTROL | 7 | ||||
| -rw-r--r-- | ports/seal/portfile.cmake | 7 |
2 files changed, 12 insertions, 2 deletions
diff --git a/ports/seal/CONTROL b/ports/seal/CONTROL index 743ebd30a..d3712e401 100644 --- a/ports/seal/CONTROL +++ b/ports/seal/CONTROL @@ -1,4 +1,9 @@ Source: seal -Version: 3.4.5 +Version: 3.4.5-1 Homepage: https://github.com/microsoft/SEAL Description: Microsoft SEAL is an easy-to-use and powerful homomorphic encryption library. +Default-Features: zlib + +Feature: zlib +Build-Depends: zlib +Description: Use zlib for compressed serialization
\ No newline at end of file diff --git a/ports/seal/portfile.cmake b/ports/seal/portfile.cmake index 8e1ac0604..01019b847 100644 --- a/ports/seal/portfile.cmake +++ b/ports/seal/portfile.cmake @@ -25,12 +25,17 @@ vcpkg_from_github( HEAD_REF master ) +vcpkg_check_features(OUT_FEATURE_OPTIONS FEATURE_OPTIONS + zlib SEAL_USE_ZLIB +) + vcpkg_configure_cmake( SOURCE_PATH ${SOURCE_PATH}/native/src PREFER_NINJA - OPTIONS + OPTIONS ${FEATURE_OPTIONS} -DALLOW_COMMAND_LINE_BUILD=ON -DSEAL_LIB_BUILD_TYPE=${SEAL_LIB_BUILD_TYPE} + -DSEAL_USE_MSGSL=OFF # issue https://github.com/microsoft/SEAL/issues/159 ) vcpkg_install_cmake() |
