Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Expose USE_NGHTTP2 as a CPR_VARIABLE #1202

Open
TheQue42 opened this issue Mar 21, 2025 · 1 comment
Open

Expose USE_NGHTTP2 as a CPR_VARIABLE #1202

TheQue42 opened this issue Mar 21, 2025 · 1 comment

Comments

@TheQue42
Copy link

Is your feature request related to a problem?

We've just been troubleshooting a linking problem in our application, were some developers receive complaints on not finding "libnghttp2.so" (among others).

We tracked it down to the fact that some developer hosts had "libnghttp2-devel" installed, which made the cpr-local build of libcurl to include them in the build, which in turn resulted in not finding the .so's during linking.

Possible Solution

Since we dont need/want to use HTTP2, it would be nice to be able to disable the usage of things like this, via a suitable CPR_SKIP_NG_HTTP2, so that set(USE_NGHTTP2 OFF) is defined when building libcurl, similarly to CPR_ENABLE_CURL_HTTP_ONLY.

Alternatives

No response

Additional Context

No response

@COM8
Copy link
Member

COM8 commented Mar 22, 2025

@TheQue42 thanks for reporting. Agree, this would be a good option to include. Would you like to create a PR for it?

Ref:
https://github.com/curl/curl/blob/master/CMakeLists.txt#L1097

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants