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
|
2021-11-23 07:38:47 +08:00
|
|
|
REF 20140bcecaec6f44ad5a8f68efcd8b44e1375604 # v.0.6.14
|
|
|
|
SHA512 e4654342831cb5c9086b60b22a7a15dd68a6769e28936576a1ff61352ea204f8e171bd446d002cefb514fd0cc4842878f23d5d51bc0da48c6224b96e4a0f3b14
|
2018-05-03 13:29:46 +08:00
|
|
|
)
|
|
|
|
|
2021-11-23 07:38:47 +08:00
|
|
|
vcpkg_cmake_configure(
|
2018-05-03 13:29:46 +08:00
|
|
|
SOURCE_PATH ${SOURCE_PATH}/vcpkg
|
|
|
|
PREFER_NINJA
|
|
|
|
)
|
|
|
|
|
2021-11-23 07:38:47 +08:00
|
|
|
vcpkg_cmake_install()
|
|
|
|
vcpkg_cmake_config_fixup(CONFIG_PATH lib/cmake/restinio)
|
2018-05-03 13:29:46 +08:00
|
|
|
|
|
|
|
file(REMOVE_RECURSE ${CURRENT_PACKAGES_DIR}/lib ${CURRENT_PACKAGES_DIR}/debug)
|
|
|
|
# Handle copyright
|
2019-12-21 04:02:36 +08:00
|
|
|
file(INSTALL ${SOURCE_PATH}/LICENSE DESTINATION ${CURRENT_PACKAGES_DIR}/share/${PORT} RENAME copyright)
|