diff --git a/Code/Mantid/docs/CMakeLists.txt b/Code/Mantid/docs/CMakeLists.txt index c2ea1eb661a7..8d4269ddb906 100644 --- a/Code/Mantid/docs/CMakeLists.txt +++ b/Code/Mantid/docs/CMakeLists.txt @@ -43,7 +43,7 @@ if ( SPHINX_FOUND ) add_custom_command ( OUTPUT qthelp/MantidProject.qhcp qthelp/MantidProject.qhp COMMAND ${DOCS_RUNNER_EXE} -xq runsphinx_qthelp.py - DEPENDS Framework MantidPlot ${CMAKE_CURRENT_BINARY_DIR}/runsphinx_qthelp.py + DEPENDS Framework MantidPlot MantidQt ${CMAKE_CURRENT_BINARY_DIR}/runsphinx_qthelp.py COMMENT "Building qt-assistant index files") add_custom_command ( OUTPUT qthelp/MantidProject.qhc @@ -72,7 +72,7 @@ if ( SPHINX_FOUND ) configure_file ( runsphinx.py.in runsphinx_html.py @ONLY ) add_custom_target ( ${TARGET_PREFIX}-html COMMAND ${DOCS_RUNNER_EXE} -xq runsphinx_html.py - DEPENDS Framework MantidPlot ${CMAKE_CURRENT_BINARY_DIR}/runsphinx_html.py ${SPHINX_CONF_DIR}/conf.py conf-html.py + DEPENDS Framework MantidPlot MantidQt ${CMAKE_CURRENT_BINARY_DIR}/runsphinx_html.py ${SPHINX_CONF_DIR}/conf.py conf-html.py COMMENT "Building html documentation" ) # Group within VS and exclude from whole build