mirror of
https://github.com/triqs/dft_tools
synced 2024-12-23 04:43:42 +01:00
[doc] Fix sphinx target dependencies for the case of no CPP2PY modules
This commit is contained in:
parent
09b0a68b26
commit
7b91cfbbb3
@ -57,7 +57,9 @@ option(Sphinx_Only "When building the documentation, skip the Python Modules and
|
||||
if(NOT Sphinx_Only)
|
||||
# Autodoc usage requires the python modules to be built first
|
||||
get_property(CPP2PY_MODULES_LIST GLOBAL PROPERTY CPP2PY_MODULES_LIST)
|
||||
add_dependencies(docs_sphinx ${CPP2PY_MODULES_LIST})
|
||||
if(CPP2PY_MODULES_LIST)
|
||||
add_dependencies(docs_sphinx ${CPP2PY_MODULES_LIST})
|
||||
endif()
|
||||
|
||||
# Generation of C++ Api and Example Outputs
|
||||
add_dependencies(docs_sphinx docs_cpp2rst docs_example_output)
|
||||
|
Loading…
Reference in New Issue
Block a user