From 45c2f827465651cc140d57f37898933b46d67b9b Mon Sep 17 00:00:00 2001 From: Thibault Saunier Date: Wed, 3 Jun 2020 18:37:22 -0400 Subject: [PATCH] doc: Require hotdoc >= 0.11.0 --- docs/meson.build | 11 +++++++++++ 1 file changed, 11 insertions(+) diff --git a/docs/meson.build b/docs/meson.build index 280cedbb12..b9ad138640 100644 --- a/docs/meson.build +++ b/docs/meson.build @@ -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') if not hotdoc.has_extensions(required_hotdoc_extensions)