[restc-cpp] Add C++17 option to fix build error (#40418)

Co-authored-by: Jon <v-zhli17@microsoft.com>
This commit is contained in:
JonLiu1993 2024-08-15 07:00:27 +08:00 committed by GitHub
parent f04dfe440c
commit 6aefaf4d1a
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
4 changed files with 10 additions and 4 deletions

View File

@ -3,7 +3,7 @@ vcpkg_check_linkage(ONLY_STATIC_LIBRARY)
vcpkg_from_github(
OUT_SOURCE_PATH SOURCE_PATH
REPO jgaa/restc-cpp
REF v0.10.0
REF "v${VERSION}"
SHA512 0f74d825d3958810c270748c2810953fe394d0bf1f147d81b9177803e29a86c702715d5995c5966c4fe671b7689f26d9a0fad4e82d111277bbd3ddce1a68f73a
HEAD_REF master
PATCHES
@ -26,6 +26,7 @@ vcpkg_cmake_configure(
-DRESTC_CPP_WITH_EXAMPLES=OFF
-DRESTC_CPP_WITH_UNIT_TESTS=OFF
-DRESTC_CPP_WITH_FUNCTIONALT_TESTS=OFF
-DRESTC_CPP_USE_CPP17=ON
${FEATURE_OPTIONS}
)
@ -37,4 +38,4 @@ vcpkg_cmake_config_fixup(CONFIG_PATH "lib/cmake/${PORT}")
file(REMOVE_RECURSE "${CURRENT_PACKAGES_DIR}/debug/share"
"${CURRENT_PACKAGES_DIR}/debug/include")
file(INSTALL "${SOURCE_PATH}/LICENSE" DESTINATION "${CURRENT_PACKAGES_DIR}/share/${PORT}" RENAME copyright)
vcpkg_install_copyright(FILE_LIST "${SOURCE_PATH}/LICENSE")

View File

@ -1,7 +1,7 @@
{
"name": "restc-cpp",
"version-semver": "0.10.0",
"port-version": 2,
"port-version": 3,
"description": "Modern C++ REST Client library",
"homepage": "https://github.com/jgaa/restc-cpp",
"license": "MIT",

View File

@ -7798,7 +7798,7 @@
},
"restc-cpp": {
"baseline": "0.10.0",
"port-version": 2
"port-version": 3
},
"restclient-cpp": {
"baseline": "2022-02-09",

View File

@ -1,5 +1,10 @@
{
"versions": [
{
"git-tree": "d19c339247ae8eab33e5141cfe985b86c440dcde",
"version-semver": "0.10.0",
"port-version": 3
},
{
"git-tree": "2e57eacc4df802951e1ae319194becc2bc3e0fb4",
"version-semver": "0.10.0",