mirror of
https://github.com/triqs/dft_tools
synced 2025-04-25 17:54:54 +02: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)
|
if(NOT Sphinx_Only)
|
||||||
# Autodoc usage requires the python modules to be built first
|
# Autodoc usage requires the python modules to be built first
|
||||||
get_property(CPP2PY_MODULES_LIST GLOBAL PROPERTY CPP2PY_MODULES_LIST)
|
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
|
# Generation of C++ Api and Example Outputs
|
||||||
add_dependencies(docs_sphinx docs_cpp2rst docs_example_output)
|
add_dependencies(docs_sphinx docs_cpp2rst docs_example_output)
|
||||||
|
Loading…
x
Reference in New Issue
Block a user