Skip to content

Commit

Permalink
Fix typo in replacement string for Doxygen FILE_PATTERNS option
Browse files Browse the repository at this point in the history
This was causing FILE_PATTERNS to always be set to blank, which
in newer doxygen versions meant that *.txt files were being included
alongside *.h, *.cpp etc. Accordingly doxygen was trying to parse
the various CMakeLists.txt files and choking and raising warnings.
  • Loading branch information
nyalldawson committed Feb 18, 2021
1 parent eeeb158 commit a89241c
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 1 deletion.
2 changes: 1 addition & 1 deletion cmake_templates/Doxyfile.in
Expand Up @@ -800,7 +800,7 @@ INPUT_ENCODING = UTF-8
# *.m, *.markdown, *.md, *.mm, *.dox, *.py, *.pyw, *.f90, *.f95, *.f03, *.f08,
# *.f, *.for, *.tcl, *.vhd, *.vhdl, *.ucf and *.qsf.

FILE_PATTERNS = @DOXYGEN_FILE_PATTERN@
FILE_PATTERNS = @DOXYGEN_FILE_PATTERNS@

# The RECURSIVE tag can be used to specify whether or not subdirectories should
# be searched for input files as well.
Expand Down
3 changes: 3 additions & 0 deletions doc/CMakeLists.txt
Expand Up @@ -149,6 +149,9 @@ if(WITH_APIDOC)

string(REPLACE ";" " " DOXYGEN_INPUT "${DOXYGEN_INPUT}")

# Doxyfile requires comma separated list of patterns for FILE_PATTERNS option
string(REPLACE ";" "," DOXYGEN_FILE_PATTERNS "${DOXYGEN_FILE_PATTERNS}")

if(WERROR)
set (DOXYGEN_WARN_AS_ERROR "YES")
else()
Expand Down

0 comments on commit a89241c

Please sign in to comment.