2019-08-30 05:29:24 +08:00
|
|
|
vcpkg_from_github(
|
2018-07-12 17:33:58 +08:00
|
|
|
OUT_SOURCE_PATH SOURCE_PATH
|
2019-08-30 05:29:24 +08:00
|
|
|
REPO stiffstream/restinio
|
2023-04-05 12:34:28 +08:00
|
|
|
REF "v.${VERSION}"
|
2023-08-19 02:35:27 +08:00
|
|
|
SHA512 0d69567a68f17f3ad30978f1ee165e673f77332f519c2e9429284d87886f90c0dea46b8dcaedb55cf4c1611eca79b9196178e37deb56ad89272ca19382f290bc
|
2023-04-05 12:34:28 +08:00
|
|
|
PATCHES
|
|
|
|
fix-cmake-config.diff
|
|
|
|
fix-project.diff
|
2018-05-03 13:29:46 +08:00
|
|
|
)
|
|
|
|
|
2023-04-05 12:34:28 +08:00
|
|
|
set(VCPKG_BUILD_TYPE release) # header-only
|
2021-11-23 07:38:47 +08:00
|
|
|
vcpkg_cmake_configure(
|
2022-05-18 02:15:06 +08:00
|
|
|
SOURCE_PATH "${SOURCE_PATH}/vcpkg"
|
2018-05-03 13:29:46 +08:00
|
|
|
)
|
2021-11-23 07:38:47 +08:00
|
|
|
vcpkg_cmake_install()
|
|
|
|
vcpkg_cmake_config_fixup(CONFIG_PATH lib/cmake/restinio)
|
2023-04-05 12:34:28 +08:00
|
|
|
file(REMOVE_RECURSE "${CURRENT_PACKAGES_DIR}/lib")
|
2018-05-03 13:29:46 +08:00
|
|
|
|
2023-04-05 12:34:28 +08:00
|
|
|
vcpkg_install_copyright(FILE_LIST "${SOURCE_PATH}/LICENSE")
|