mirror of
https://github.com/microsoft/vcpkg.git
synced 2024-12-01 12:49:07 +08:00
195fb66988
* update to 1.10.2 * fix sleepy-discord issue * update * update * restore * fix version
35 lines
923 B
CMake
35 lines
923 B
CMake
vcpkg_check_linkage(ONLY_STATIC_LIBRARY)
|
|
|
|
vcpkg_from_github(
|
|
OUT_SOURCE_PATH SOURCE_PATH
|
|
REPO libcpr/cpr
|
|
REF 0445800cd2cace404ac37eb3e78ec5d1431a4f30 #1.10.2
|
|
SHA512 77723343b2ce89a10b8622cf54127edd6639412e3d457caed31b4fa1d3935d79846b4be695c327001fc2228313591e320c9080dbf8c09e3b69265f81641b9973
|
|
HEAD_REF master
|
|
PATCHES
|
|
001-cpr-config.patch
|
|
disable_werror.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")
|
|
|
|
vcpkg_install_copyright(FILE_LIST "${SOURCE_PATH}/LICENSE")
|