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

Handle static CURL #13

Merged
merged 1 commit into from
May 25, 2024
Merged

Handle static CURL #13

merged 1 commit into from
May 25, 2024

Conversation

Flamefire
Copy link
Member

(Especially) on Windows we need to define CURL_STATICLIB when linking to the static curl library or we get errors such as:

unresolved external symbol __imp__curl_free

Check if the CURL target from the CMake config file (of CURL) was used and trust them to set that define.
Otherwise apply a heuristic to detect whether static CURL was found and set the define (and libs for MSVC) in that case

(Especially) on Windows we need to define `CURL_STATICLIB` when linking
to the static curl library or we get errors such as:
> unresolved external symbol __imp__curl_free

Check if the CURL target from the CMake config file (of CURL) was used
and trust them to set that define.
Otherwise apply a heuristic to detect whether static CURL was found and
set the define (and libs for MSVC) in that case
@Flamefire Flamefire merged commit 343dc0c into master May 25, 2024
2 checks passed
@Flamefire Flamefire deleted the curlfix branch May 25, 2024 14:02
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant