Skip to content

Commit

Permalink
Misc Doxygen improvement
Browse files Browse the repository at this point in the history
Use Doxygen preprocessor to ignore GCC __attribute__ which would
otherwise be interpreted as a function
  • Loading branch information
leonlynch committed Apr 21, 2024
1 parent 3375534 commit bf14c3c
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -174,6 +174,10 @@ find_package(Doxygen) # optional for generating doxygen files
if(Doxygen_FOUND)
# use doxygen to generate HTML
set(DOXYGEN_GENERATE_HTML YES)
# ignore occurances of GCC __attribute__
set(DOXYGEN_MACRO_EXPANSION YES)
set(DOXYGEN_EXPAND_ONLY_PREDEF YES)
set(DOXYGEN_PREDEFINED "__attribute__(x)=")

# generate docs for public header
if(BUILD_DOCS)
Expand Down

0 comments on commit bf14c3c

Please sign in to comment.