3
0
mirror of https://github.com/triqs/dft_tools synced 2024-06-25 06:32:22 +02:00

[doc] Fix sphinx target dependencies for the case of no CPP2PY modules

This commit is contained in:
Nils Wentzell 2019-12-02 15:16:13 -05:00
parent 09b0a68b26
commit 7b91cfbbb3

View File

@ -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)