From d51ff55af1728306f4bf6678c1ffec204a9cc819 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Tim-Philipp=20M=C3=BCller?= Date: Tue, 26 Dec 2017 13:46:20 +0100 Subject: [PATCH] meson: skip translations if gettext is not available --- meson.build | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/meson.build b/meson.build index ef22d2b583..387e46f4ef 100644 --- a/meson.build +++ b/meson.build @@ -434,9 +434,13 @@ subdir('plugins') subdir('tools') subdir('pkgconfig') subdir('tests') -subdir('po') subdir('data') +# xgettext is optional (on Windows for instance) +if find_program('xgettext', required : false).found() + subdir('po') +endif + configure_file(output : 'config.h', configuration : cdata) if build_machine.system() == 'windows'