Skip to content

Commit

Permalink
[cpr] disable werror (#26252)
Browse files Browse the repository at this point in the history
* [cpr] disable werror

* v db
  • Loading branch information
Neumann-A authored Aug 10, 2022
1 parent c9bbaff commit 13e9aea
Show file tree
Hide file tree
Showing 5 changed files with 21 additions and 1 deletion.
13 changes: 13 additions & 0 deletions ports/cpr/disable_werror.patch
Original file line number Diff line number Diff line change
@@ -0,0 +1,13 @@
diff --git a/CMakeLists.txt b/CMakeLists.txt
index cb7c5f042..a5bc0b942 100644
--- a/CMakeLists.txt
+++ b/CMakeLists.txt
@@ -71,7 +71,7 @@ if(CPR_ENABLE_CPPCHECK)
include(cmake/cppcheck.cmake)
endif()

-if ("${CMAKE_CXX_COMPILER_ID}" STREQUAL "MSVC")
+if (1)
else()
set(CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} -Wall -Wextra -Wpedantic -Werror")
endif()
1 change: 1 addition & 0 deletions ports/cpr/portfile.cmake
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,7 @@ vcpkg_from_github(
HEAD_REF master
PATCHES
001-cpr-config.patch
disable_werror.patch
)

vcpkg_check_features(OUT_FEATURE_OPTIONS FEATURE_OPTIONS
Expand Down
1 change: 1 addition & 0 deletions ports/cpr/vcpkg.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
{
"name": "cpr",
"version-semver": "1.9.0",
"port-version": 1,
"description": "C++ Requests is a simple wrapper around libcurl inspired by the excellent Python Requests project.",
"homepage": "https://github.com/libcpr/cpr",
"license": "MIT",
Expand Down
2 changes: 1 addition & 1 deletion versions/baseline.json
Original file line number Diff line number Diff line change
Expand Up @@ -1682,7 +1682,7 @@
},
"cpr": {
"baseline": "1.9.0",
"port-version": 0
"port-version": 1
},
"cpu-features": {
"baseline": "0.6.0",
Expand Down
5 changes: 5 additions & 0 deletions versions/c-/cpr.json
Original file line number Diff line number Diff line change
@@ -1,5 +1,10 @@
{
"versions": [
{
"git-tree": "85bce5170656abc1bf594034c85f406d996776b1",
"version-semver": "1.9.0",
"port-version": 1
},
{
"git-tree": "8ad107acca744655eb0b5aa05c5e6fc1c5516347",
"version-semver": "1.9.0",
Expand Down

0 comments on commit 13e9aea

Please sign in to comment.