vcpkg/ports/cpp-httplib/portfile.cmake
Elias Benali 430f3d3787
[cpp-httplib] Update to v0.11.2 (#26957) (#26958)
* [cpp-httplib] Update to v0.11.2 (#26957)

    * [cpp-httplib] Update to v0.11.2

* [cpp-httplib] Update to v0.11.2: x-add-version

 * [cpp-httplib]: Update to v0.11.2: x-add-version

* Update cpp-httplib.json

Co-authored-by: Lily Wang <94091114+LilyWangLL@users.noreply.github.com>
2022-09-29 14:20:01 -07:00

14 lines
547 B
CMake

# Header-only library
vcpkg_from_github(
OUT_SOURCE_PATH SOURCE_PATH
REPO yhirose/cpp-httplib
REF 8e10d4e8e7febafce0632810262e81e853b2065f #v0.11.2
SHA512 a213edb3f24c3147879b0500df2baf8819ac39c7943ee01bf096fbae512b81694c1b7805cfae15918ef5820ee10316de268e71c3fe25d1f8cfb39dd384678f1c
HEAD_REF master
)
file(COPY "${SOURCE_PATH}/httplib.h" DESTINATION "${CURRENT_PACKAGES_DIR}/include")
# Handle copyright
file(INSTALL "${SOURCE_PATH}/LICENSE" DESTINATION "${CURRENT_PACKAGES_DIR}/share/${PORT}" RENAME copyright)