Skip to content

cmake: add CURL_USE_PKGCONFIG option - #14504

Closed
vszakats wants to merge 1 commit into
curl:masterfrom
vszakats:cm-curl-use-pkgconfig
Closed

vszakats wants to merge 1 commit into
curl:masterfrom
vszakats:cm-curl-use-pkgconfig

Conversation

@vszakats

@vszakats vszakats commented Aug 12, 2024 •

Copy link
Copy Markdown
Member

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