mirror of
https://github.com/microsoft/vcpkg.git
synced 2024-12-12 16:09:01 +08:00
870165b0f6
* [CPR] Update to 1.8.3 (again, see details) * update version * [CPR] Update to 1.8.4 * update version * [CPR] Update to 1.9.0 * remove v1.8.4 in cpr.json * update version
34 lines
942 B
CMake
34 lines
942 B
CMake
vcpkg_check_linkage(ONLY_STATIC_LIBRARY)
|
|
|
|
vcpkg_from_github(
|
|
OUT_SOURCE_PATH SOURCE_PATH
|
|
REPO libcpr/cpr
|
|
REF 871ed52d350214a034f6ef8a3b8f51c5ce1bd400 #v1.9.0
|
|
SHA512 2f0c38e27597cf33457ca5613ead742da6ecea47674542e7762b2206e58226f21070be288b1bc4ff7af5d01e0f1b9f9548daffc5937559d986c5205b7dbc41f0
|
|
HEAD_REF master
|
|
PATCHES
|
|
001-cpr-config.patch
|
|
)
|
|
|
|
vcpkg_check_features(OUT_FEATURE_OPTIONS FEATURE_OPTIONS
|
|
FEATURES
|
|
ssl CPR_ENABLE_SSL
|
|
)
|
|
|
|
vcpkg_cmake_configure(
|
|
SOURCE_PATH "${SOURCE_PATH}"
|
|
OPTIONS
|
|
-DCPR_BUILD_TESTS=OFF
|
|
-DCPR_FORCE_USE_SYSTEM_CURL=ON
|
|
${FEATURE_OPTIONS}
|
|
OPTIONS_DEBUG
|
|
-DDISABLE_INSTALL_HEADERS=ON
|
|
)
|
|
|
|
vcpkg_cmake_install()
|
|
vcpkg_cmake_config_fixup(CONFIG_PATH lib/cmake/cpr)
|
|
|
|
file(REMOVE_RECURSE "${CURRENT_PACKAGES_DIR}/debug/include")
|
|
|
|
file(INSTALL "${SOURCE_PATH}/LICENSE" DESTINATION "${CURRENT_PACKAGES_DIR}/share/${PORT}" RENAME copyright)
|