vcpkg/ports/apsi/portfile.cmake
Wei Dai 8218499f58
[apsi ]Updated to version 0.7.0 (#21527)
* Updated ports/apsi to 0.7.0.

* Updated versioning.
2021-11-18 20:15:08 -08:00

39 lines
1.0 KiB
CMake

vcpkg_check_linkage(ONLY_STATIC_LIBRARY)
if("hexl" IN_LIST FEATURES)
vcpkg_fail_port_install(ON_ARCH "x86" "arm" "arm64")
endif()
vcpkg_from_github(
OUT_SOURCE_PATH SOURCE_PATH
REPO microsoft/APSI
REF 6365cb774b81a2a731334c656db21e5fdfb92870
SHA512 f21d710a345663aeb35035565c55fd900076589d087a03a1ad7df8b8004ae0e059196f3c94ee63b5ad815a858e5404eea34ae203f7778d4190fd323fd08b7084
HEAD_REF main
)
vcpkg_check_features(OUT_FEATURE_OPTIONS FEATURE_OPTIONS
FEATURES
log4cplus APSI_USE_LOG4CPLUS
zeromq APSI_USE_ZMQ
)
vcpkg_cmake_configure(
SOURCE_PATH ${SOURCE_PATH}
DISABLE_PARALLEL_CONFIGURE
OPTIONS
"-DAPSI_BUILD_TESTS=OFF"
"-DAPSI_BUILD_CLI=OFF"
${FEATURE_OPTIONS}
)
vcpkg_cmake_install()
vcpkg_cmake_config_fixup(PACKAGE_NAME "APSI" CONFIG_PATH "lib/cmake/APSI-0.7")
file(REMOVE_RECURSE "${CURRENT_PACKAGES_DIR}/debug/include")
file(INSTALL "${SOURCE_PATH}/LICENSE" DESTINATION "${CURRENT_PACKAGES_DIR}/share/${PORT}" RENAME "copyright")
vcpkg_copy_pdbs()