From 09d81b517ec8a820ea895902c823399f6259393c Mon Sep 17 00:00:00 2001 From: Mathieu Duponchelle Date: Wed, 24 Jun 2020 14:27:27 +0200 Subject: [PATCH] meson: docs is not an option of gst-docs Simply error out if hotdoc's version isn't recent enough parent project can then decide whether gst-docs was required. Part-of: --- meson.build | 9 ++------- 1 file changed, 2 insertions(+), 7 deletions(-) diff --git a/meson.build b/meson.build index 281adf3aa6..0dc0c7ceaa 100644 --- a/meson.build +++ b/meson.build @@ -11,12 +11,7 @@ endif hotdoc_req = '>= 0.12.2' 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 + error('Hotdoc version @0@ not found, got @1@'.format(hotdoc_req, hotdoc_version)) endif hotdoc = import('hotdoc') @@ -137,4 +132,4 @@ run_target('release', meson.project_version(), meson.current_build_dir()], depends: [gstreamer_doc] -) \ No newline at end of file +)