From ef557b5667df8793c2b1af66d96cce8337914bd2 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Tim-Philipp=20M=C3=BCller?= Date: Tue, 26 Dec 2017 13:52:18 +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 4dca0ed546..4d57ccb140 100644 --- a/meson.build +++ b/meson.build @@ -461,6 +461,10 @@ subdir('sys') subdir('ext') subdir('tests') subdir('pkgconfig') -subdir('po') + +# xgettext is optional (on Windows for instance) +if find_program('xgettext', required : false).found() + subdir('po') +endif run_command(python3, '-c', 'import shutil; shutil.copy("hooks/pre-commit.hook", ".git/hooks/pre-commit")')