From c4792d88fc62430a24dd73c17fd32b865b4781cf Mon Sep 17 00:00:00 2001 From: Chris Cromer Date: Fri, 9 Dec 2022 23:40:51 -0300 Subject: [PATCH] only build docs if doxygen is present --- meson.build | 7 +++---- 1 file changed, 3 insertions(+), 4 deletions(-) diff --git a/meson.build b/meson.build index 1a2c280..d654d2a 100644 --- a/meson.build +++ b/meson.build @@ -9,9 +9,6 @@ project('obelisk', ) doxygen = find_program('doxygen', required : false) -if not doxygen.found() - error('MESON_SKIP_TEST doxygen not found.') -endif cdata = configuration_data() cdata.set('VERSION', meson.project_version()) @@ -22,6 +19,8 @@ else cdata.set('HAVE_DOT', 'NO') endif -subdir('doc') +if doxygen.found() + subdir('doc') +endif subdir('src')