mirror of
https://github.com/glfw/glfw.git
synced 2025-08-31 19:11:49 +00:00
Update Doxygen version handling
This commit is contained in:
parent
04a67c8267
commit
c9b129753a
@ -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
|
# NOTE: The order of this list determines the order of items in the Guides
|
||||||
# (i.e. Pages) list in the generated documentation
|
# (i.e. Pages) list in the generated documentation
|
||||||
set(source_files
|
set(source_files
|
||||||
@ -32,10 +36,10 @@ foreach(file IN LISTS source_files)
|
|||||||
endforeach()
|
endforeach()
|
||||||
|
|
||||||
set(DOXYGEN_SKIP_DOT TRUE)
|
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")
|
if (NOT DOXYGEN_FOUND)
|
||||||
message(STATUS "Documentation generation requires Doxygen 1.9.8 or later")
|
message(STATUS "Documentation generation requires Doxygen ${MINIMUM_DOXYGEN_VERSION} or later")
|
||||||
else()
|
else()
|
||||||
configure_file(Doxyfile.in Doxyfile @ONLY)
|
configure_file(Doxyfile.in Doxyfile @ONLY)
|
||||||
add_custom_command(OUTPUT "html/index.html"
|
add_custom_command(OUTPUT "html/index.html"
|
||||||
|
Loading…
Reference in New Issue
Block a user