vcpkg/ports/seal/portfile.cmake
Wei Dai 428d6000c4
[Seal] Update to version 3.7.1 (#21024)
* Updated ports/seal.

* Updated versioning.
2021-11-03 21:47:05 -07:00

43 lines
1.2 KiB
CMake

vcpkg_check_linkage(ONLY_STATIC_LIBRARY)
vcpkg_from_github(
OUT_SOURCE_PATH SOURCE_PATH
REPO microsoft/SEAL
REF 608fb1b9717ec6effe707758a636e0a0df76fc26
SHA512 4d73e44955dcf7424318d1f46dd2b38b08592fd649a208953dbb9da30e7befdb6bf9f50ab364732d0ded7c9d977fd9bbad9fd1e2d2ff6ea2931d418a87be6d27
HEAD_REF main
)
vcpkg_check_features(OUT_FEATURE_OPTIONS FEATURE_OPTIONS
FEATURES
ms-gsl SEAL_USE_MSGSL
zlib SEAL_USE_ZLIB
zstd SEAL_USE_ZSTD
hexl SEAL_USE_INTEL_HEXL
INVERTED_FEATURES
no-throw-tran SEAL_THROW_ON_TRANSPARENT_CIPHERTEXT
)
vcpkg_cmake_configure(
SOURCE_PATH ${SOURCE_PATH}
DISABLE_PARALLEL_CONFIGURE
OPTIONS
"-DSEAL_BUILD_DEPS=OFF"
"-DSEAL_BUILD_EXAMPLES=OFF"
"-DSEAL_BUILD_TESTS=OFF"
"-DSEAL_BUILD_SEAL_C=OFF"
${FEATURE_OPTIONS}
)
vcpkg_cmake_install()
vcpkg_cmake_config_fixup(PACKAGE_NAME "SEAL" CONFIG_PATH "lib/cmake/SEAL-3.7")
vcpkg_fixup_pkgconfig()
file(REMOVE_RECURSE "${CURRENT_PACKAGES_DIR}/debug/include")
file(INSTALL "${SOURCE_PATH}/LICENSE" DESTINATION "${CURRENT_PACKAGES_DIR}/share/${PORT}" RENAME "copyright")
vcpkg_copy_pdbs()