meson: Return a disabler if xsltproc is not found

Fixes: #170
This commit is contained in:
Benjamin Berg 2022-02-07 15:56:48 +01:00
parent fb02a57a2b
commit da05dd4b81

View file

@ -47,7 +47,7 @@ gio_dep = dependency('gio-2.0', version: '>=' + glib_min_version)
gio_unix_dep = dependency('gio-unix-2.0', version: '>=' + glib_min_version)
m_dep = cc.find_library('m', required: true)
xsltproc = find_program('xsltproc', required: get_option('gtk-doc') or get_option('man'))
xsltproc = find_program('xsltproc', disabler: true, required: get_option('gtk-doc') or get_option('man'))
# Resolve OS backend
os_backend = get_option('os_backend')