vcpkg/ports/restinio/portfile.cmake
Kai Pastor 76b55aaf7c
[restinio] Update, fix exported config, fix build warnings (#30655)
* RESTinio updated to v.0.6.18.

* Baseline updated for RESTinio-0.6.18.

* [restinio] Fixup config requirements

* [restinio] Revise build/install

---------

Co-authored-by: Yauheni Akhotnikau <eao197@gmail.com>
2023-04-04 21:34:28 -07:00

20 lines
632 B
CMake

vcpkg_from_github(
OUT_SOURCE_PATH SOURCE_PATH
REPO stiffstream/restinio
REF "v.${VERSION}"
SHA512 8a535ebcdfb53ef9f669bbd007d11b6d95bae87b1a8b8403556910e4904483bfcaeb88fa2ee5522c9bef048a9276cbdb1fa15ec62b5bd158fc585b0e84cf046b
PATCHES
fix-cmake-config.diff
fix-project.diff
)
set(VCPKG_BUILD_TYPE release) # header-only
vcpkg_cmake_configure(
SOURCE_PATH "${SOURCE_PATH}/vcpkg"
)
vcpkg_cmake_install()
vcpkg_cmake_config_fixup(CONFIG_PATH lib/cmake/restinio)
file(REMOVE_RECURSE "${CURRENT_PACKAGES_DIR}/lib")
vcpkg_install_copyright(FILE_LIST "${SOURCE_PATH}/LICENSE")