From 6f8fc5f1787ae7ab174b0810974d99f5e16ebf3e Mon Sep 17 00:00:00 2001 From: Nirbheek Chauhan Date: Thu, 14 Mar 2024 15:30:17 +0530 Subject: [PATCH] meson: Disable docs completely when the option is disabled Part-of: --- docs/meson.build | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/docs/meson.build b/docs/meson.build index a6697ee7..d084ade8 100644 --- a/docs/meson.build +++ b/docs/meson.build @@ -1,5 +1,9 @@ build_hotdoc = false +if get_option('doc').disabled() + subdir_done() +endif + if meson.is_cross_build() if get_option('doc').enabled() error('Documentation enabled but building the doc while cross building is not supported yet.')