From 72801986cbdbf06c8db67cdf6be0ffa6a3a0e37c Mon Sep 17 00:00:00 2001 From: Frank Lichtenheld Date: Tue, 15 Oct 2024 19:10:27 +0200 Subject: [PATCH] Run Doxygen with warnings as errors So that we do not have so many issues creep in. Need to allow it to generate bigger dot images, otherwise this also causes warnings. Signed-off-by: Frank Lichtenheld --- cmake/ovpn-doxygen.cmake | 2 ++ 1 file changed, 2 insertions(+) diff --git a/cmake/ovpn-doxygen.cmake b/cmake/ovpn-doxygen.cmake index b321a4a63..b97ef3402 100644 --- a/cmake/ovpn-doxygen.cmake +++ b/cmake/ovpn-doxygen.cmake @@ -22,6 +22,8 @@ function(configure_doxygen projname outputdir) set(DOXYGEN_CALL_GRAPH "NO" CACHE STRING "Generate call graph images (value: YES/NO)") set(DOXYGEN_CALLER_GRAPH "YES" CACHE STRING "Generate caller graph images (value: YES/NO)") set(DOXYGEN_FILE_PATTERNS *.c *.h *.cc *.hh *.cpp *.hpp *.java *.i *.md *.rst) + set(DOXYGEN_DOT_GRAPH_MAX_NODES 500) + set(DOXYGEN_WARN_AS_ERROR YES) doxygen_add_docs(doxygen ALL "${DOXYGEN_USE_MDFILE_AS_MAINPAGE}" "${CMAKE_CURRENT_SOURCE_DIR}"