You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: CMakeLists.txt
+5Lines changed: 5 additions & 0 deletions
Original file line number
Diff line number
Diff line change
@@ -67,6 +67,7 @@ cpr_option(CPR_FORCE_DARWINSSL_BACKEND "Force to use the DarwinSSL backend. If C
67
67
cpr_option(CPR_FORCE_MBEDTLS_BACKEND"Force to use the Mbed TLS backend. If CPR_FORCE_OPENSSL_BACKEND, CPR_FORCE_DARWINSSL_BACKEND, CPR_FORCE_MBEDTLS_BACKEND, and CPR_FORCE_WINSSL_BACKEND are set to to OFF, cpr will try to automatically detect the best available SSL backend (WinSSL - Windows, OpenSSL - Linux, DarwinSSL - Mac ...)."OFF)
68
68
cpr_option(CPR_ENABLE_LINTING"Set to ON to enable clang linting."OFF)
69
69
cpr_option(CPR_ENABLE_CPPCHECK"Set to ON to enable Cppcheck static analysis. Requires CPR_BUILD_TESTS and CPR_BUILD_TESTS_SSL to be OFF to prevent checking google tests source code."OFF)
70
+
cpr_option(CPR_BUILD_MODULES"Set to ON to build cpr as a C++ module."OFF)
70
71
cpr_option(CPR_BUILD_TESTS"Set to ON to build cpr tests."OFF)
71
72
cpr_option(CPR_BUILD_TESTS_SSL"Set to ON to build cpr ssl tests"${CPR_BUILD_TESTS})
72
73
cpr_option(CPR_BUILD_TESTS_PROXY"Set to ON to build proxy tests. They fail in case there is no valid proxy server available in proxy_tests.cpp"OFF)
Copy file name to clipboardExpand all lines: README.md
+1Lines changed: 1 addition & 0 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -221,6 +221,7 @@ The only explicit requirements are:
221
221
222
222
* A `C++17` compatible compiler such as Clang or GCC. The minimum required version of GCC is unknown, so if anyone has trouble building this library with a specific version of GCC, do let us know.
223
223
* In case you only have a `C++11` compatible compiler available, all versions below cpr 1.9.x are for you. The 1.10.0 release of cpr switches to `C++17` as a requirement.
224
+
* If you would like to use cpr as a C++20 module, you must have CMake 3.28 enabled. Enable `CPR_BUILD_MODULES` to activate the feature.
224
225
* If you would like to perform https requests `OpenSSL` and its development libraries are required.
225
226
* If you do not use the built-in version of [curl](https://github.com/curl/curl) but instead use your systems version, make sure you use a version `>= 7.71.0`. Lower versions are not supported. This means you need Debian `>= 11` or Ubuntu `>= 22.04 LTS`.
226
227
*[`The Meson Build System`](https://mesonbuild.com/) is required build PSL from source ([PSL support for curl](https://everything.curl.dev/build/deps.html#libpsl)). For more information take a look at the `CPR_CURL_USE_LIBPSL` and `CPR_USE_SYSTEM_LIB_PSL` CMake options.
0 commit comments