Skip to content

Commit 76f5420

Browse files
miyanyanpull[bot]
authored andcommitted
[cpr] update to 1.11.2 (microsoft#43988)
1 parent de86300 commit 76f5420

File tree

5 files changed

+22
-5
lines changed

5 files changed

+22
-5
lines changed

ports/cpr/fix-static-build.patch

Lines changed: 13 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,13 @@
1+
diff --git a/CMakeLists.txt b/CMakeLists.txt
2+
index 2fc6152..b953f8c 100644
3+
--- a/CMakeLists.txt
4+
+++ b/CMakeLists.txt
5+
@@ -82,7 +82,7 @@ if (MSVC)
6+
message(STATUS "Build windows dynamic libs.")
7+
else()
8+
# Add this to build windows pure static library.
9+
- set(CMAKE_MSVC_RUNTIME_LIBRARY "MultiThreaded$<$<CONFIG:Debug>:Debug>")
10+
+ # set(CMAKE_MSVC_RUNTIME_LIBRARY "MultiThreaded$<$<CONFIG:Debug>:Debug>")
11+
message(STATUS "Build windows static libs.")
12+
endif()
13+
endif()

ports/cpr/portfile.cmake

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,13 +1,12 @@
1-
vcpkg_check_linkage(ONLY_STATIC_LIBRARY)
2-
31
vcpkg_from_github(
42
OUT_SOURCE_PATH SOURCE_PATH
53
REPO libcpr/cpr
64
REF ${VERSION}
7-
SHA512 cde62f13b43bad143695e54f5f69dfd250be52d2f6a76ebb3fde3db1e1059eb3c2e9d62e71f4c90f98a33f0053aea7c97bf55d8a7fa8584a37298e6a1bc3b18a
5+
SHA512 30caf9257e5e45f809f541a32daf8c6c7001fbaafef0ee0ae8dd59f49736953120cb7c8849ddbff2f7fbc54d80902ec2b905f90f68f63d1f2a2dc63eda577713
86
HEAD_REF master
97
PATCHES
108
disable_werror.patch
9+
fix-static-build.patch
1110
)
1211

1312
vcpkg_check_features(OUT_FEATURE_OPTIONS FEATURE_OPTIONS

ports/cpr/vcpkg.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "cpr",
3-
"version-semver": "1.11.1",
3+
"version-semver": "1.11.2",
44
"description": "C++ Requests is a simple wrapper around libcurl inspired by the excellent Python Requests project.",
55
"homepage": "https://github.com/libcpr/cpr",
66
"license": "MIT",

versions/baseline.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2017,7 +2017,7 @@
20172017
"port-version": 0
20182018
},
20192019
"cpr": {
2020-
"baseline": "1.11.1",
2020+
"baseline": "1.11.2",
20212021
"port-version": 0
20222022
},
20232023
"cpu-features": {

versions/c-/cpr.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": "36cfe399344149cbea14eece7277207823c26f76",
5+
"version-semver": "1.11.2",
6+
"port-version": 0
7+
},
38
{
49
"git-tree": "dc36316122f82687e1e66ca48958296b16495e42",
510
"version-semver": "1.11.1",

0 commit comments

Comments
 (0)