meson: Add dependency lookups via names used by cmake
authorAndres Freund <andres@anarazel.de>
Sat, 20 Jul 2024 20:51:08 +0000 (13:51 -0700)
committerAndres Freund <andres@anarazel.de>
Sat, 20 Jul 2024 20:51:14 +0000 (13:51 -0700)
commit5ec2c529f5537a5f5d5c929c49a5a2af2e4feda7
treedbed52633d95db1d68d20c1468da8f45d062514c
parent2416fdb3ee30bdd2810408f93f14d47bff840fea
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
meson.build