Skip to content

Commit

Permalink
Honor ENABLE_WERROR for Doxygen too
Browse files Browse the repository at this point in the history
  • Loading branch information
pmatilai committed Mar 4, 2024
1 parent d85a308 commit fcc0a11
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions doc/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,9 @@ if(BUILD_DOCUMENTATION)
endif()

set(DOXYGEN_OPTIMIZE_OUTPUT_FOR_C YES)
if (ENABLE_WERROR)
set(DOXYGEN_WARN_AS_ERROR YES)
endif()
doxygen_add_docs(apidocs
${CMAKE_SOURCE_DIR}/src/popt.h
ALL USE_STAMP_FILE
Expand Down

0 comments on commit fcc0a11

Please sign in to comment.