meson: skip translations if gettext is not available

This commit is contained in:
Tim-Philipp Müller 2017-12-26 13:46:20 +01:00
parent ce00ec8bce
commit d51ff55af1

View file

@ -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'