From 7b91cfbbb3ae0832a374a204b726a9a788de69e6 Mon Sep 17 00:00:00 2001 From: Nils Wentzell Date: Mon, 2 Dec 2019 15:16:13 -0500 Subject: [PATCH] [doc] Fix sphinx target dependencies for the case of no CPP2PY modules --- doc/CMakeLists.txt | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/doc/CMakeLists.txt b/doc/CMakeLists.txt index c8bbd4d5..03f40173 100644 --- a/doc/CMakeLists.txt +++ b/doc/CMakeLists.txt @@ -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)