Skip to content

Commit

Permalink
Doc: no python automoc for doxygen 1.10
Browse files Browse the repository at this point in the history
Co-authored-by: Joris Vaillant <joris.vaillant@inria.fr>
  • Loading branch information
nim65s and jorisv committed Jul 12, 2024
1 parent eef05b4 commit 075581c
Show file tree
Hide file tree
Showing 3 changed files with 7 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
5 changes: 5 additions & 0 deletions python/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -55,6 +55,11 @@ SET(${PYTHON_LIB_NAME}_HEADERS

SET(ENABLE_PYTHON_DOXYGEN_AUTODOC TRUE CACHE BOOL "Enable automatic documentation of Python bindings from Doxygen documentation")

# deactivate python doxygen automoc for doxygen 1.10, ref. https://github.com/doxygen/doxygen/issues/10797
IF(DOXYGEN_VERSION VERSION_GREATER_EQUAL 1.10.0 AND DOXYGEN_VERSION VERSION_LESS 1.11.0)
SET(ENABLE_PYTHON_DOXYGEN_AUTODOC FALSE)
ENDIF()

IF( NOT ENABLE_PYTHON_DOXYGEN_AUTODOC
OR NOT DOXYGEN_FOUND)
SET(ENABLE_DOXYGEN_AUTODOC FALSE)
Expand Down

0 comments on commit 075581c

Please sign in to comment.