vcpkg/ports/asio-grpc/portfile.cmake

25 lines
721 B
CMake
Raw Normal View History

2024-10-22 06:30:48 +02:00
set(VCPKG_BUILD_TYPE release) # header-only
vcpkg_from_github(
OUT_SOURCE_PATH SOURCE_PATH
REPO Tradias/asio-grpc
REF "v${VERSION}"
2024-12-16 16:17:35 +01:00
SHA512 5793f6eb644f6fa4cf520f595f9a61b0b2a90c79cb0890dfb5b986a1b403f853beac9a86ea5663d34d5947908e5eec0ec4238c358b21d3f8f4292f7ad6df19aa
HEAD_REF master
)
vcpkg_cmake_configure(
SOURCE_PATH ${SOURCE_PATH}
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 00:33:35 +02:00
vcpkg_install_copyright(FILE_LIST "${SOURCE_PATH}/LICENSE")