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

How to build cpr with a custom libcurl library? #1149

Open
eaziz4 opened this issue Nov 25, 2024 · 2 comments
Open

How to build cpr with a custom libcurl library? #1149

eaziz4 opened this issue Nov 25, 2024 · 2 comments
Assignees

Comments

@eaziz4
Copy link

eaziz4 commented Nov 25, 2024

Description

I want to specify the libcurl library when building cpr. How can I do that? I'm on mac right now for development, but production is on ubuntu

Example/How to Reproduce

.

Possible Fix

.

Where did you get it from?

GitHub (branch e.g. master)

Additional Context/Your Environment

.

@eaziz4 eaziz4 changed the title How to build cpr with a custom libcurl version? How to build cpr with a custom libcurl library? Nov 25, 2024
@eaziz4
Copy link
Author

eaziz4 commented Nov 27, 2024

for more context, I want to use https://github.com/lexiforest/curl-impersonate instead of the default curl

@COM8
Copy link
Member

COM8 commented Nov 27, 2024

@eaziz4 thanks for your question here!
This is not supported directly. Buuuut you could try the following:

  1. Create and install a custom FindCURL.cmake on your system
  2. Set CPR_USE_SYSTEM_CURL during configuration (e.g. cmake .. -DCPR_USE_SYSTEM_CURL=ON).

@COM8 COM8 self-assigned this Nov 27, 2024
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