meson: Add dependency lookups via names used by cmake

Andres Freund <andres@anarazel.de>

Commit: 13c58ca51883da23e0884dfeedf5e172d5eea80c
Author: Andres Freund <andres@anarazel.de>
Date: 2024-07-20T20:51:09Z
Releases: 16.4
meson: Add dependency lookups via names used by cmake

Particularly on windows it's useful to look up dependencies via cmake, instead
of pkg-config. Meson supports doing so. Unfortunately the dependency names
used by various projects often differs between their pkg-config and cmake
files.

This would look a lot neater if we could rely on meson >= 0.60.0...

Reviewed-by: Tristan Partin <tristan@partin.io>
Discussion: https://postgr.es/m/20240709065101.xhc74r3mdg2lmn4w@awork3.anarazel.de
Backpatch: 16-, where meson support was added

Files

PathChange+/−
meson.build modified +40 −6

Discussion