vcpkg/ports/restinio/portfile.cmake
eao197 b54e364833
[restinio] Update to 0.7.0 (#35083)
* RESTinio updated to v.0.7.0.

* Fix manifest format.

* x-add-version for RESTinio-0.7.0.

* Remove files that not needed anymore.

* x-add-version for updated RESTinio port.

* Remove comment with vim settings.

* x-add-version for updated RESTinio's portfile.
2023-11-15 17:04:11 -08:00

29 lines
941 B
CMake

vcpkg_from_github(
OUT_SOURCE_PATH SOURCE_PATH
REPO stiffstream/restinio
REF "v.${VERSION}"
SHA512 de9929d9ed6acf9574482ffa3f865a550e319716c9cfc5a9e2e9f604169206df022d55e0e55174c66f0edc04a4491c028755272067e55ae646ecfccc1573f78f
)
set(VCPKG_BUILD_TYPE release) # header-only
vcpkg_cmake_configure(
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
)
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")