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

cmake: add CURL_USE_PKGCONFIG option #14504

Closed
wants to merge 1 commit into from

Conversation

vszakats
Copy link
Member

@vszakats vszakats commented Aug 12, 2024

Add option to control whether to use pkg-config to detect
dependencies. Curl's CMake uses pkg-config by default for all targets
except for MSVC without vcpkg.

With the CMake option -DCURL_USE_PKGCONFIG=ON you can override it to
use pkg-config always.

If pkg-config is causing issues, e.g. in cross-builds or other cases,
-DCURL_USE_PKGCONFIG=OFF disables all use of pkg-config.

Also add it to curl-config.cmake. Not yet used, but will be once curl
starts referencing any curl-specific Find* module from this public
script.

Follow-up to 9dfdc6f #14483
Closes #14504

Add option to control whether to use `pkg-config` to detect
dependencies. Curl's CMake uses `pkg-config` by default for all targets
except for MSVC without vcpkg.

With the CMake option `-DCURL_USE_PKGCONFIG=ON` you can override it to
use `pkg-config` always.

If `pkg-config` is causing issues, e.g. in cross-builds or other cases,
`-DCURL_USE_PKGCONFIG=OFF` disables all use of `pkg-config`.

Follow-up to 9dfdc6f curl#14483
Closes #xxxxx
@vszakats vszakats closed this in b910122 Aug 13, 2024
@vszakats vszakats deleted the cm-curl-use-pkgconfig branch August 13, 2024 07:31
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Development

Successfully merging this pull request may close these issues.

2 participants