Skip to content

Commit

Permalink
[cmake] Disable finding Doxygen only for CMake < 3.28
Browse files Browse the repository at this point in the history
The allows building the documentation without setting a
flag only by running "make doc" / "ninja doc".
  • Loading branch information
gruenich committed Sep 29, 2024
1 parent 7c80e81 commit 7c63fbf
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -262,6 +262,8 @@ endif()

add_subdirectory(EXAMPLE)

if (enable_doc)
# To work around CMake bug #18708 that got fixed in 3.28.0, for
# older CMake disable finding Doxygen unless explicitly enabled
if (enable_doc OR (CMAKE_VERSION VERSION_GREATER_EQUAL "3.28.0"))
add_subdirectory(DOC)
endif()

0 comments on commit 7c63fbf

Please sign in to comment.