From ed65f52f50b1aeccbb4f10ef39e78a839dceefe9 Mon Sep 17 00:00:00 2001 From: Michael Herstine Date: Sun, 27 Feb 2022 08:00:12 -0800 Subject: [PATCH] Address feedback on PR #1452. Move the invocation of `find_program` for doxygen into the if branch & make failure to find the program fatal. --- doc/meson.build | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/doc/meson.build b/doc/meson.build index 9f66e4383..0ab323cc5 100644 --- a/doc/meson.build +++ b/doc/meson.build @@ -37,9 +37,9 @@ if get_option('manpages') ) endif -doxygen = find_program('doxygen', required: false) -if get_option('doxygen') and doxygen.found() +if get_option('doxygen') + doxygen = find_program('doxygen', required: true) conf_data = configuration_data() conf_data.set('VERSION', meson.project_version()) conf_data.set('abs_top_srcdir', meson.source_root())