mirror of
https://github.com/microsoft/vcpkg.git
synced 2024-11-27 13:29:00 +08:00
d27b275702
* Updated SEAL to version 3.6.4. * Updated versions/s-/seal.json.
52 lines
1.3 KiB
CMake
52 lines
1.3 KiB
CMake
vcpkg_check_linkage(ONLY_STATIC_LIBRARY)
|
|
|
|
vcpkg_from_github(
|
|
OUT_SOURCE_PATH SOURCE_PATH
|
|
REPO microsoft/SEAL
|
|
REF 0b058d99b7f18a00e5ebb2b80caee593804b0500
|
|
SHA512 eed4e4360e32c8506a8f84b9bcfd2c8debf0013ee181f37fb34c6b94e62bbde1993ee400a3f589fe2378b598dd4fdb2e8532b706691a9348e464cd1a202ef23c
|
|
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
|
|
|
|
INVERTED_FEATURES
|
|
no-throw-tran SEAL_THROW_ON_TRANSPARENT_CIPHERTEXT
|
|
)
|
|
|
|
vcpkg_configure_cmake(
|
|
SOURCE_PATH ${SOURCE_PATH}
|
|
PREFER_NINJA
|
|
DISABLE_PARALLEL_CONFIGURE
|
|
OPTIONS
|
|
-DSEAL_BUILD_DEPS=OFF
|
|
-DSEAL_BUILD_EXAMPLES=OFF
|
|
-DSEAL_BUILD_TESTS=OFF
|
|
-DSEAL_BUILD_SEAL_C=OFF
|
|
${FEATURE_OPTIONS}
|
|
)
|
|
|
|
vcpkg_build_cmake(TARGET seal LOGFILE_ROOT build)
|
|
|
|
vcpkg_install_cmake()
|
|
|
|
file(GLOB CONFIG_PATH RELATIVE "${CURRENT_PACKAGES_DIR}" "${CURRENT_PACKAGES_DIR}/lib/cmake/SEAL-*")
|
|
if(NOT CONFIG_PATH)
|
|
message(FATAL_ERROR "Could not find installed cmake config files.")
|
|
endif()
|
|
|
|
vcpkg_fixup_cmake_targets(CONFIG_PATH "${CONFIG_PATH}")
|
|
|
|
vcpkg_fixup_pkgconfig()
|
|
|
|
file(REMOVE_RECURSE ${CURRENT_PACKAGES_DIR}/debug/include)
|
|
|
|
# Handle copyright
|
|
file(INSTALL ${SOURCE_PATH}/LICENSE DESTINATION ${CURRENT_PACKAGES_DIR}/share/${PORT} RENAME copyright)
|
|
|
|
vcpkg_copy_pdbs()
|