vcpkg/ports/asio-grpc/portfile.cmake
2022-10-21 15:33:35 -07:00

29 lines
824 B
CMake

vcpkg_from_github(
OUT_SOURCE_PATH SOURCE_PATH
REPO Tradias/asio-grpc
REF v2.2.0
SHA512 2561e78553a7b58929a04dc0cc49800dd65bec1079cbbaea271f923c9071defaed1a80eb730d1b07b39dcb5d4859c51f3e3fa4d95a73cfc8263ad72af9c4d125
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}")
vcpkg_install_copyright(FILE_LIST "${SOURCE_PATH}/LICENSE")