[seal] Support dynamic builds (#23064)

This commit is contained in:
Robert Schumacher 2022-02-15 20:35:04 -08:00 committed by GitHub
parent 81d6c5ec18
commit c364465535
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
5 changed files with 21 additions and 3 deletions

View File

@ -8,6 +8,7 @@ vcpkg_from_github(
HEAD_REF main
PATCHES
gsl.patch
shared-zstd.patch
)
vcpkg_check_features(OUT_FEATURE_OPTIONS FEATURE_OPTIONS

View File

@ -0,0 +1,13 @@
diff --git a/CMakeLists.txt b/CMakeLists.txt
index 4cc8a01..b8c92c2 100644
--- a/CMakeLists.txt
+++ b/CMakeLists.txt
@@ -205,7 +205,7 @@ if(SEAL_USE_ZSTD)
message(FATAL_ERROR "Zstandard: must be static")
endif()
elseif(TARGET zstd::libzstd_shared)
- message(FATAL_ERROR "Zstandard: must be static")
+ set(zstd_static "zstd::libzstd_shared")
else()
message(FATAL_ERROR "Zstandard: not found")
endif()

View File

@ -1,10 +1,9 @@
{
"name": "seal",
"version-semver": "3.7.2",
"port-version": 1,
"port-version": 2,
"description": "Microsoft SEAL is an easy-to-use and powerful homomorphic encryption library.",
"homepage": "https://github.com/microsoft/SEAL",
"supports": "!windows | (windows & static)",
"dependencies": [
{
"name": "vcpkg-cmake",

View File

@ -6306,7 +6306,7 @@
},
"seal": {
"baseline": "3.7.2",
"port-version": 1
"port-version": 2
},
"secp256k1": {
"baseline": "2017-19-10",

View File

@ -1,5 +1,10 @@
{
"versions": [
{
"git-tree": "c3499eaa1c19049bc521c3d2799d8d7d6d032a8a",
"version-semver": "3.7.2",
"port-version": 2
},
{
"git-tree": "11dc6c4e8b720416ff6ce195e48287982a6131ec",
"version-semver": "3.7.2",