doc: Require hotdoc >= 0.11.0

This commit is contained in:
Thibault Saunier 2020-06-03 18:35:32 -04:00
parent bfb95d6b74
commit f1cb5bf471

View file

@ -35,6 +35,17 @@ if not hotdoc_p.found()
subdir_done()
endif
hotdoc_req = '>= 0.11.0'
hotdoc_version = run_command(hotdoc_p, '--version').stdout()
if not hotdoc_version.version_compare(hotdoc_req)
if get_option('doc').enabled()
error('Hotdoc version @0@ not found, got @1@'.format(hotdoc_req, hotdoc_version))
else
message('Hotdoc version @0@ not found, got @1@'.format(hotdoc_req, hotdoc_version))
subdir_done()
endif
endif
build_hotdoc = true
hotdoc = import('hotdoc')
docconf = configuration_data()