meson.build: explicitly check for gettext to be present

There's a meson issue where loading i18n produces a warning about missing
gettext but then proceeds to fail with confusing error messages where the i18n
module is used, see https://github.com/mesonbuild/meson/issues/6165

Work around this by explicitly checking for gettext after loading i18n.

Fixes #270

Signed-off-by: Peter Hutterer <peter.hutterer@who-t.net>
pull/271/head
Peter Hutterer 2021-01-22 15:43:49 +10:00
parent 643099b858
commit 99952dd118
1 changed files with 2 additions and 0 deletions

View File

@ -23,6 +23,8 @@ libexecdir = join_paths(get_option('prefix'), get_option('libexecdir'), 'tuhi')
i18n = import('i18n')
# Workaround for https://github.com/mesonbuild/meson/issues/6165
find_program('gettext')
subdir('po')
subdir('data')