only build docs if doxygen is present

This commit is contained in:
Chris Cromer 2022-12-09 23:40:51 -03:00
parent c5ff5479a5
commit c4792d88fc
Signed by: cromer
GPG Key ID: FA91071797BEEEC2

View File

@ -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
if doxygen.found()
subdir('doc')
endif
subdir('src')