meson: replace deprecated get_pkgconfig_variable()

Apparently that function was deprecated in 0.56, so use the generic
getter introduced in 0.51 instead. This squashes a warning.

Signed-off-by: Joe Baldino <pedanticdm@gmx.us>
Signed-off-by: Allan McRae <allan@archlinux.org>
This commit is contained in:
Joe Baldino 2022-07-28 05:36:11 +00:00 committed by Allan McRae
parent ff7c6c8e57
commit daa2db6a23

View file

@ -43,7 +43,7 @@ endif
bashcompletion = dependency('bash-completion', required : false)
if bashcompletion.found()
BASHCOMPDIR = bashcompletion.get_pkgconfig_variable('completionsdir')
BASHCOMPDIR = bashcompletion.get_variable(pkgconfig: 'completionsdir')
else
BASHCOMPDIR = join_paths(DATAROOTDIR, 'bash-completion/completions')
endif