Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Tighten warning for 'Requires.private' in simple pkg-config parser (#…
…26008) Tightens up the logic for when we should warn about 'Requires.private' (and also 'Requires'). We only need to warn when the compiler/linker flags are not already handled by 'Cflags'/`Libs`. Details: `Requires`/`Requires.private` list what other pkg-config libraries are needed, so that `pkg-config` can pull in the need dependencies/flags. This ends up being a recursive operation (i.e. 'A' has 'Requires: B', so we must process 'B.pc'). But if we already have the information needed, this is unnecessary. So if we have 'Requires: B', but 'B' is already listed in 'Libs', then for our purposes we have satisfied the 'Requires.' Our simple pkg-config parser is used only for bundled third-party libs, and we do not need to ability to recursively search other .pc files to satisfy the requirements. So this PR uses the above logic to avoid warning about `Requires`/`Requires.private` not being handled This should resolve #26002 [Reviewed by @mppf and @jhh67]
- Loading branch information