Skip to content

Commit 8f56217

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 41c447c commit 8f56217

File tree

1 file changed

+8
-0
lines changed

1 file changed

+8
-0
lines changed

ports/cpprestsdk/portfile.cmake

Lines changed: 8 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(
@@ -35,6 +42,7 @@ vcpkg_cmake_configure(
3542
-DCPPREST_EXPORT_DIR=share/cpprestsdk
3643
-DWERROR=OFF
3744
-DPKG_CONFIG_EXECUTABLE=FALSE
45+
-DCMAKE_EXPORT_COMPILE_COMMANDS=ON
3846
OPTIONS_DEBUG
3947
-DCPPREST_INSTALL_HEADERS=OFF
4048
)

0 commit comments

Comments
 (0)