meson: don't error out if xmllint is not found

Only needed for glib/tests and entirely optional.
This commit is contained in:
Tim-Philipp Müller 2017-08-03 19:23:25 +01:00
parent ad9d5a11f2
commit a1fdae8afc

View File

@ -170,7 +170,7 @@ executable('test-spawn-echo', 'test-spawn-echo.c',
# some testing of gtester functionality
if not meson.is_cross_build() and host_system != 'windows'
xmllint = find_program('xmllint')
xmllint = find_program('xmllint', required: false)
if xmllint.found()
tmpsample_xml = custom_target('tmpsample.xml',
output : 'tmpsample.xml',