CMake: Disconnect docs installation targets from generation targets
"ninja install_docs" should not run the "docs" target, because with
the usual workflow
ninja docs
ninja install_docs
the documentation would be built twice.
That of course means that "ninja install_docs" will fail if "ninja
docs" wasn't run before.
Analogous for html_docs, qch_docs, the repository-level and
module-level documentation targets.
Change-Id: I8ad83602dd393b5afc79a19ab3d395987c889d0d
Reviewed-by: Alexandru Croitor <alexandru.croitor@qt.io>
bb10
parent
db939d8f33
commit
2746051522
|
|
@ -239,8 +239,6 @@ macro(qt_build_repo_begin)
|
|||
add_custom_target(install_docs)
|
||||
add_dependencies(html_docs generate_docs)
|
||||
add_dependencies(docs html_docs qch_docs)
|
||||
add_dependencies(install_html_docs html_docs)
|
||||
add_dependencies(install_qch_docs qch_docs)
|
||||
add_dependencies(install_docs install_html_docs install_qch_docs)
|
||||
endif()
|
||||
|
||||
|
|
@ -277,8 +275,6 @@ macro(qt_build_repo_begin)
|
|||
add_dependencies(${qt_docs_generate_target_name} ${qt_docs_prepare_target_name})
|
||||
add_dependencies(${qt_docs_html_target_name} ${qt_docs_generate_target_name})
|
||||
add_dependencies(${qt_docs_target_name} ${qt_docs_html_target_name} ${qt_docs_qch_target_name})
|
||||
add_dependencies(${qt_docs_install_html_target_name} ${qt_docs_html_target_name})
|
||||
add_dependencies(${qt_docs_install_qch_target_name} ${qt_docs_qch_target_name})
|
||||
add_dependencies(${qt_docs_install_target_name} ${qt_docs_install_html_target_name} ${qt_docs_install_qch_target_name})
|
||||
|
||||
# Make top-level prepare_docs target depend on the repository-level prepare_docs_<repo> target.
|
||||
|
|
|
|||
|
|
@ -181,9 +181,6 @@ function(qt_internal_add_docs)
|
|||
add_custom_target(install_qch_docs_${target})
|
||||
endif()
|
||||
|
||||
add_dependencies(install_html_docs_${target} html_docs_${target})
|
||||
add_dependencies(install_qch_docs_${target} qch_docs_${target})
|
||||
|
||||
add_custom_target(install_docs_${target})
|
||||
add_dependencies(install_docs_${target} install_html_docs_${target} install_qch_docs_${target})
|
||||
|
||||
|
|
|
|||
Loading…
Reference in New Issue