vcpkg/ports/asio-grpc/portfile.cmake

29 lines
831 B
CMake
Raw Normal View History

vcpkg_from_github(
OUT_SOURCE_PATH SOURCE_PATH
REPO Tradias/asio-grpc
REF "v${VERSION}"
2023-10-31 05:41:04 +08:00
SHA512 3ad088a090a506f12d73fdac1689d9aea0416f9d21762c7be1de9d5a278ac2e856541e7b433809077e5297d2953b55357380e5097d894bd511c652927ec5daba
HEAD_REF master
)
vcpkg_check_features(
OUT_FEATURE_OPTIONS FEATURE_OPTIONS
FEATURES
boost-container ASIO_GRPC_USE_BOOST_CONTAINER
)
vcpkg_cmake_configure(
SOURCE_PATH ${SOURCE_PATH}
OPTIONS ${FEATURE_OPTIONS}
-DASIO_GRPC_CMAKE_CONFIG_INSTALL_DIR=share/asio-grpc
)
vcpkg_cmake_install()
vcpkg_cmake_config_fixup()
file(REMOVE_RECURSE "${CURRENT_PACKAGES_DIR}/debug")
file(INSTALL "${CURRENT_PORT_DIR}/usage" DESTINATION "${CURRENT_PACKAGES_DIR}/share/${PORT}")
2022-10-22 06:33:35 +08:00
vcpkg_install_copyright(FILE_LIST "${SOURCE_PATH}/LICENSE")