Skip to content

Commit b8532e8

Browse files
committed
[cpprestsdk] fix compilation of cpprestsdk on new MacOS
Cpprestsdk fails to compile on newer MacOS due to missing char_traits. This provides the fix from microsoft/cpprestsdk#1820 Related to microsoft/cpprestsdk#1812
1 parent 7d52225 commit b8532e8

File tree

4 files changed

+14
-2
lines changed

4 files changed

+14
-2
lines changed

ports/cpprestsdk/portfile.cmake

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,9 @@
1+
vcpkg_download_distfile(PATCH_PR_1820
2+
URLS https://github.com/microsoft/cpprestsdk/commit/396259a0f88e6f908c6d841f13c113d5f0d0ec26.patch
3+
SHA512 2235feddc11633041eb27fadb154515c2270d2f187f3bab4cac3f0b73f7ff034a56d4540700ccae36be216f480915da5203b660f9401e371999dbce888a421bf
4+
FILENAME char_traits.patch
5+
)
6+
17
vcpkg_from_github(
28
OUT_SOURCE_PATH SOURCE_PATH
39
REPO Microsoft/cpprestsdk
@@ -11,6 +17,7 @@ vcpkg_from_github(
1117
fix-clang-dllimport.patch # workaround for https://github.com/microsoft/cpprestsdk/issues/1710
1218
silence-stdext-checked-array-iterators-warning.patch
1319
fix-asio-error.patch
20+
${PATCH_PR_1820}
1421
)
1522

1623
vcpkg_check_features(

ports/cpprestsdk/vcpkg.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
{
22
"name": "cpprestsdk",
33
"version": "2.10.19",
4-
"port-version": 3,
4+
"port-version": 4,
55
"description": [
66
"C++11 JSON, REST, and OAuth library",
77
"The C++ REST SDK is a Microsoft project for cloud-based client-server communication in native code using a modern asynchronous C++ API design. This project aims to help C++ developers connect to and interact with services."

versions/baseline.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2054,7 +2054,7 @@
20542054
},
20552055
"cpprestsdk": {
20562056
"baseline": "2.10.19",
2057-
"port-version": 3
2057+
"port-version": 4
20582058
},
20592059
"cppslippi": {
20602060
"baseline": "1.4.3.16",

versions/c-/cpprestsdk.json

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,10 @@
11
{
22
"versions": [
3+
{
4+
"git-tree": "86500cf9f3b462296cd78a268eb4b643424b44e4",
5+
"version": "2.10.19",
6+
"port-version": 4
7+
},
38
{
49
"git-tree": "9f5e160191038cbbd2470e534c43f051c80e7d44",
510
"version": "2.10.19",

0 commit comments

Comments
 (0)