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}"
|
2024-03-28 06:22:14 +08:00
|
|
|
SHA512 ac47e83b2fdcbf5a42b3b5af8f5db7f400baa18515c6a042ee6aacc77df03aa1a90f14a57a1127ce2472bf72dc568160ff3c07aaddd4235910b7b831bcfcf569
|
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(
|
2023-11-16 09:04:11 +08:00
|
|
|
SOURCE_PATH "${SOURCE_PATH}/dev"
|
|
|
|
OPTIONS
|
|
|
|
-DRESTINIO_INSTALL=ON
|
|
|
|
-DRESTINIO_TEST=OFF
|
|
|
|
-DRESTINIO_SAMPLE=OFF
|
|
|
|
-DRESTINIO_BENCHMARK=OFF
|
|
|
|
-DRESTINIO_WITH_SOBJECTIZER=OFF
|
|
|
|
-DRESTINIO_ASIO_SOURCE=standalone
|
|
|
|
-DRESTINIO_DEP_STANDALONE_ASIO=find
|
|
|
|
-DRESTINIO_DEP_LLHTTP=find
|
|
|
|
-DRESTINIO_DEP_FMT=find
|
|
|
|
-DRESTINIO_DEP_EXPECTED_LITE=find
|
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")
|
2023-11-16 09:04:11 +08:00
|
|
|
|