Fix the dependencies for the python doxygen build

DEPENDS was being used for targets which is invalid for add_custom_target...as confusing as that is.
It is files only.
This commit is contained in:
Marek Roszko 2022-12-21 23:39:25 -05:00
parent 1cc9792cdb
commit caeb579174
1 changed files with 6 additions and 2 deletions

View File

@ -506,6 +506,8 @@ if( DOXYGEN_FOUND )
COMMENT "building doxygen docs into directory doxygen-python/html"
)
add_dependencies( doxygen-python-xml version_header )
# create .i files from XML doxygen parsing, docstrings.i will include all of them
add_custom_target( xml-to-docstrings
COMMAND ${CMAKE_COMMAND} -E remove_directory docstrings
@ -515,9 +517,10 @@ if( DOXYGEN_FOUND )
COMMENT "building docstring files"
WORKING_DIRECTORY ${CMAKE_CURRENT_BINARY_DIR}
DEPENDS pcbnew.py
DEPENDS doxygen-python-xml
)
add_dependencies( xml-to-docstrings doxygen-python-xml )
# The sources to give to the Python Doxygen target
set( DOXYGEN_PYTHON_SOURCES
${CMAKE_CURRENT_BINARY_DIR}/pcbnew.py
@ -536,10 +539,11 @@ if( DOXYGEN_FOUND )
${DOXYGEN_EXECUTABLE} ${CMAKE_CURRENT_SOURCE_DIR}/Doxyfile_python
WORKING_DIRECTORY ${CMAKE_CURRENT_BINARY_DIR}
DEPENDS Doxyfile_python
DEPENDS xml-to-docstrings
DEPENDS ${DOXYGEN_PYTHON_SOURCES}
COMMENT "building doxygen docs into directory doxygen-python/html"
)
add_dependencies( doxygen-python version_header xml-to-docstrings )
endif()
if( WIN32 )