2019-03-21 18:15:37 +01:00
|
|
|
vcpkg_check_linkage(ONLY_STATIC_LIBRARY)
|
|
|
|
|
2017-06-20 01:59:25 +02:00
|
|
|
vcpkg_from_github(
|
|
|
|
OUT_SOURCE_PATH SOURCE_PATH
|
2021-10-18 14:21:39 -07:00
|
|
|
REPO libcpr/cpr
|
2023-10-18 19:15:03 +02:00
|
|
|
REF ${VERSION}
|
2024-12-06 21:13:55 +01:00
|
|
|
SHA512 cde62f13b43bad143695e54f5f69dfd250be52d2f6a76ebb3fde3db1e1059eb3c2e9d62e71f4c90f98a33f0053aea7c97bf55d8a7fa8584a37298e6a1bc3b18a
|
2019-03-21 18:15:37 +01:00
|
|
|
HEAD_REF master
|
2019-05-10 09:14:27 +09:00
|
|
|
PATCHES
|
2022-08-10 20:28:51 +02:00
|
|
|
disable_werror.patch
|
2017-06-20 01:59:25 +02:00
|
|
|
)
|
|
|
|
|
2022-04-06 21:03:32 +02:00
|
|
|
vcpkg_check_features(OUT_FEATURE_OPTIONS FEATURE_OPTIONS
|
|
|
|
FEATURES
|
|
|
|
ssl CPR_ENABLE_SSL
|
|
|
|
)
|
|
|
|
|
2021-10-18 14:21:39 -07:00
|
|
|
vcpkg_cmake_configure(
|
2021-12-07 12:21:05 +08:00
|
|
|
SOURCE_PATH "${SOURCE_PATH}"
|
2023-10-18 19:15:03 +02:00
|
|
|
OPTIONS
|
2021-06-22 05:23:26 +08:00
|
|
|
-DCPR_BUILD_TESTS=OFF
|
2024-03-13 23:48:53 +01:00
|
|
|
-DCPR_USE_SYSTEM_CURL=ON
|
2022-04-06 21:03:32 +02:00
|
|
|
${FEATURE_OPTIONS}
|
2024-03-13 23:48:53 +01:00
|
|
|
# skip test for unused sanitizer flags
|
|
|
|
-DTHREAD_SANITIZER_AVAILABLE=OFF
|
|
|
|
-DADDRESS_SANITIZER_AVAILABLE=OFF
|
|
|
|
-DLEAK_SANITIZER_AVAILABLE=OFF
|
|
|
|
-DUNDEFINED_BEHAVIOUR_SANITIZER_AVAILABLE=OFF
|
|
|
|
-DALL_SANITIZERS_AVAILABLE=OFF
|
2017-06-20 01:59:25 +02:00
|
|
|
)
|
|
|
|
|
2021-10-18 14:21:39 -07:00
|
|
|
vcpkg_cmake_install()
|
|
|
|
vcpkg_cmake_config_fixup(CONFIG_PATH lib/cmake/cpr)
|
2019-05-10 09:14:27 +09:00
|
|
|
|
2021-12-07 12:21:05 +08:00
|
|
|
file(REMOVE_RECURSE "${CURRENT_PACKAGES_DIR}/debug/include")
|
2019-05-10 09:14:27 +09:00
|
|
|
|
2023-04-22 05:54:16 +08:00
|
|
|
vcpkg_install_copyright(FILE_LIST "${SOURCE_PATH}/LICENSE")
|