From 5e04350ac1bd7b7c63a94944d8273db71e7b9679 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Tim-Philipp=20M=C3=BCller?= Date: Tue, 26 Dec 2017 13:49:25 +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 d099d45808..80930ce122 100644 --- a/meson.build +++ b/meson.build @@ -264,7 +264,11 @@ subdir('sys') subdir('tools') subdir('tests') subdir('pkgconfig') -subdir('po') + +# xgettext is optional (on Windows for instance) +if find_program('xgettext', required : false).found() + subdir('po') +endif if build_machine.system() == 'windows' message('Disabling gtk-doc while building on Windows')