CMake: Fix top-level documentation install targets
The following targets did not do any actual installation: install_docs, install_html_docs, install_qch_docs, plus their repository-level counterparts. Add the following dependencies: install_html_docs --> install_html_docs_<repo> --> install_html_docs_<module> Analogous for qch. The install_docs target already triggers install_html_docs and install_qch_docs. Analogous for install_docs_<repo>. Fixes: QTBUG-86738 Change-Id: I3468e000e050e2787a859e61d40161f5459cb351 Reviewed-by: Alexandru Croitor <alexandru.croitor@qt.io>
This commit is contained in:
parent
e559da3c6a
commit
db939d8f33
@ -284,6 +284,10 @@ macro(qt_build_repo_begin)
|
||||
# Make top-level prepare_docs target depend on the repository-level prepare_docs_<repo> target.
|
||||
add_dependencies(prepare_docs ${qt_docs_prepare_target_name})
|
||||
|
||||
# Make top-level install_*_docs targets depend on the repository-level install_*_docs targets.
|
||||
add_dependencies(install_html_docs ${qt_docs_install_html_target_name})
|
||||
add_dependencies(install_qch_docs ${qt_docs_install_qch_target_name})
|
||||
|
||||
# Add host_tools meta target, so that developrs can easily build only tools and their
|
||||
# dependencies when working in qtbase.
|
||||
if(NOT TARGET host_tools)
|
||||
|
@ -194,6 +194,8 @@ function(qt_internal_add_docs)
|
||||
add_dependencies(${qt_docs_prepare_target_name} prepare_docs_${target})
|
||||
add_dependencies(${qt_docs_generate_target_name} generate_repo_docs_${target})
|
||||
add_dependencies(${qt_docs_qch_target_name} qch_repo_docs_${target})
|
||||
add_dependencies(${qt_docs_install_html_target_name} install_html_docs_${target})
|
||||
add_dependencies(${qt_docs_install_qch_target_name} install_qch_docs_${target})
|
||||
|
||||
# Make sure that the necessary tools are built when running,
|
||||
# for example 'cmake --build . --target generate_docs'.
|
||||
|
Loading…
x
Reference in New Issue
Block a user