2019-03-22 01:15:37 +08:00
|
|
|
vcpkg_check_linkage(ONLY_STATIC_LIBRARY)
|
|
|
|
|
2017-06-20 07:59:25 +08:00
|
|
|
vcpkg_from_github(
|
|
|
|
OUT_SOURCE_PATH SOURCE_PATH
|
2021-10-19 05:21:39 +08:00
|
|
|
REPO libcpr/cpr
|
2021-12-22 12:18:29 +08:00
|
|
|
REF 1.7.2
|
|
|
|
SHA512 b2af6ab13a5dab435cc298c74ba79c365569c1e5ccfaffeea9dab0ad28cd918a198f83446761ac2e2101abb4be3a2f669f991e854e541851c1d250f34e16c414
|
2019-03-22 01:15:37 +08:00
|
|
|
HEAD_REF master
|
2019-05-10 08:14:27 +08:00
|
|
|
PATCHES
|
|
|
|
001-cpr-config.patch
|
2017-06-20 07:59:25 +08:00
|
|
|
)
|
|
|
|
|
2021-10-19 05:21:39 +08:00
|
|
|
vcpkg_cmake_configure(
|
2021-12-07 12:21:05 +08:00
|
|
|
SOURCE_PATH "${SOURCE_PATH}"
|
2017-06-20 07:59:25 +08:00
|
|
|
OPTIONS
|
2021-06-22 05:23:26 +08:00
|
|
|
-DCPR_BUILD_TESTS=OFF
|
|
|
|
-DCPR_FORCE_USE_SYSTEM_CURL=ON
|
2017-06-21 06:36:35 +08:00
|
|
|
OPTIONS_DEBUG
|
|
|
|
-DDISABLE_INSTALL_HEADERS=ON
|
2017-06-20 07:59:25 +08:00
|
|
|
)
|
|
|
|
|
2021-10-19 05:21:39 +08:00
|
|
|
vcpkg_cmake_install()
|
2017-06-20 07:59:25 +08:00
|
|
|
|
2021-12-07 12:21:05 +08:00
|
|
|
|
2021-10-19 05:21:39 +08:00
|
|
|
vcpkg_cmake_config_fixup(CONFIG_PATH lib/cmake/cpr)
|
2019-05-10 08:14:27 +08:00
|
|
|
|
2017-06-21 06:36:35 +08:00
|
|
|
vcpkg_copy_pdbs()
|
2017-06-20 07:59:25 +08:00
|
|
|
|
2021-12-07 12:21:05 +08:00
|
|
|
file(REMOVE_RECURSE "${CURRENT_PACKAGES_DIR}/debug/include")
|
2019-05-10 08:14:27 +08:00
|
|
|
|
2017-06-20 07:59:25 +08:00
|
|
|
# Handle copyright
|
2021-12-07 12:21:05 +08:00
|
|
|
file(INSTALL "${SOURCE_PATH}/LICENSE" DESTINATION "${CURRENT_PACKAGES_DIR}/share/${PORT}" RENAME copyright)
|