envconfig: use $PKG_CONFIG for pkg-config find_program as well as pkgconfig

It looks like internally we use pkgconfig, even though the installed
name is pkg-config. This fixes `tests cases/common/44 pkgconfig-gen`,
which will ignore PKG_CONFIG and select the wrong pkg-config binary if
you have $PKG_CONFIG set.
pull/10160/head
Dylan Baker 3 years ago committed by Jussi Pakkanen
parent d3e3733c1a
commit 9ee0de427c
  1. 1
      mesonbuild/envconfig.py

@ -120,6 +120,7 @@ ENV_VAR_PROG_MAP: T.Mapping[str, str] = {
'cmake': 'CMAKE',
'qmake': 'QMAKE',
'pkgconfig': 'PKG_CONFIG',
'pkg-config': 'PKG_CONFIG',
'make': 'MAKE',
'vapigen': 'VAPIGEN',
}

Loading…
Cancel
Save