From c9b129753aa3a002de90c8458e4c8121a2fe6d8a Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Camilla=20L=C3=B6wy?= Date: Thu, 21 Aug 2025 21:36:19 +0200 Subject: [PATCH] Update Doxygen version handling --- docs/CMakeLists.txt | 10 +++++++--- 1 file changed, 7 insertions(+), 3 deletions(-) diff --git a/docs/CMakeLists.txt b/docs/CMakeLists.txt index 50522173..4cf86365 100644 --- a/docs/CMakeLists.txt +++ b/docs/CMakeLists.txt @@ -1,4 +1,8 @@ +# Because of bugs and limitations in its Markdown support, only fairly recent +# versions of Doxygen can produce acceptable output +set(MINIMUM_DOXYGEN_VERSION 1.9.8) + # NOTE: The order of this list determines the order of items in the Guides # (i.e. Pages) list in the generated documentation set(source_files @@ -32,10 +36,10 @@ foreach(file IN LISTS source_files) endforeach() set(DOXYGEN_SKIP_DOT TRUE) -find_package(Doxygen) +find_package(Doxygen ${MINIMUM_DOXYGEN_VERSION} QUIET) -if (NOT DOXYGEN_FOUND OR DOXYGEN_VERSION VERSION_LESS "1.9.8") - message(STATUS "Documentation generation requires Doxygen 1.9.8 or later") +if (NOT DOXYGEN_FOUND) + message(STATUS "Documentation generation requires Doxygen ${MINIMUM_DOXYGEN_VERSION} or later") else() configure_file(Doxyfile.in Doxyfile @ONLY) add_custom_command(OUTPUT "html/index.html"