Skip to content

Commit

Permalink
Doc: no automoc for doxygen 1.10
Browse files Browse the repository at this point in the history
And avoid doxygen 1.10 in conda environments

Co-authored-by: Joris Vaillant <joris.vaillant@inria.fr>
  • Loading branch information
nim65s and jorisv committed Jul 12, 2024
1 parent eef05b4 commit c7c5988
Show file tree
Hide file tree
Showing 3 changed files with 10 additions and 2 deletions.
2 changes: 1 addition & 1 deletion .github/workflows/conda/environment_macos_linux.yml
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ dependencies:
- boost
- eigenpy
- python
- doxygen
- doxygen<1.10|>1.11
- lxml
- pylatexenc
- qhull
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/conda/environment_windows.yml
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ dependencies:
- boost
- eigenpy
- python
- doxygen
- doxygen<1.10|>=1.11
- lxml
- pylatexenc
- qhull
Expand Down
8 changes: 8 additions & 0 deletions python/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -61,6 +61,14 @@ IF( NOT ENABLE_PYTHON_DOXYGEN_AUTODOC
ELSE()
SET(ENABLE_DOXYGEN_AUTODOC TRUE)

IF(DOXYGEN_VERSION VERSION_GREATER_EQUAL 1.10.0 AND DOXYGEN_VERSION VERSION_LESS 1.11.0)
# deactivate python doxygen automoc for doxygen 1.10,
# as it incorrectly parse "const" keyword,
# generating wrong links in C++ doc, and fail generating python doc
# ref. https://github.com/doxygen/doxygen/issues/10797
SET(ENABLE_DOXYGEN_AUTODOC FALSE)
MESSAGE(AUTHOR_WARNING "automoc deactivated because of doxygen 1.10. Please use <1.10 or >=1.11.")
ENDIF()
EXECUTE_PROCESS(COMMAND ${PYTHON_EXECUTABLE} -c "import lxml"
RESULT_VARIABLE _pypkg_found
OUTPUT_QUIET
Expand Down

0 comments on commit c7c5988

Please sign in to comment.