Skip to content

cmake: revert to pkg_check_modules()#14573

Closed
vszakats wants to merge 1 commit intocurl:masterfrom
vszakats:cm-prefer-check-modules
Closed

cmake: revert to pkg_check_modules()#14573
vszakats wants to merge 1 commit intocurl:masterfrom
vszakats:cm-prefer-check-modules

Conversation

@vszakats
Copy link
Member

@vszakats vszakats commented Aug 16, 2024

Prefer pkg_check_modules() over pkg_search_module().

pkg_check_modules() logs a line when there is a hit, and also warnings
if a sub-dependency is missing. In QUIET mode, both are silent.

The extra info is useful to see if a detection happened via
pkg-config.

Keep pkg_search_module() in FindGSS. We pass two dependencies
there and we want to keep stopping on the first one.

Partially reverts c2889a7 #14388

`pkg_check_modules()` logs a line when there is a hit, and also warnings
if a sub-dependency is missing. In `QUIET` mode, both are completely
silent.

The extra info is useful to see if a detection happened via
`pkg-config`.

Keep `pkg_search_module()` in `FindGSS`. We pass two dependencies
there and we want to keep stopping on the first one.

Partially reverts c2889a7 curl#14388
@vszakats vszakats added the cmake label Aug 16, 2024
@vszakats vszakats marked this pull request as draft August 16, 2024 16:30
@github-actions github-actions bot added the build label Aug 16, 2024
@vszakats vszakats marked this pull request as ready for review August 16, 2024 22:27
@vszakats vszakats closed this in f3a03df Aug 16, 2024
@vszakats vszakats deleted the cm-prefer-check-modules branch August 16, 2024 22:33
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.

1 participant