forked from qt-creator/qt-creator
Doc: Fix configuration if qdoc is missing
As is currently the case for our Debian/ARM binaries.
It was failing when trying to make the html_docs_qtcreator target depend
on the doc_attributions target, because the html_docs target is not
created if qdoc is missing.
Amends 2ce9f9d97d
Change-Id: Ia5b118d6d373f7cc131d6fb9a03555180509b9d4
Reviewed-by: <github-actions-qt-creator@cristianadam.eu>
Reviewed-by: Cristian Adam <cristian.adam@qt.io>
This commit is contained in:
@@ -272,6 +272,11 @@ function(add_qtc_documentation qdocconf_file)
|
|||||||
endfunction()
|
endfunction()
|
||||||
|
|
||||||
function(add_qtc_doc_attribution target attribution_file output_file qdocconf_file)
|
function(add_qtc_doc_attribution target attribution_file output_file qdocconf_file)
|
||||||
|
set(html_target "html_docs_${doc_target}")
|
||||||
|
if (NOT TARGET ${html_target})
|
||||||
|
# probably qdoc is missing, so other documentation targets are not there
|
||||||
|
return()
|
||||||
|
endif()
|
||||||
get_filename_component(doc_target "${qdocconf_file}" NAME_WE)
|
get_filename_component(doc_target "${qdocconf_file}" NAME_WE)
|
||||||
add_custom_target(${target}
|
add_custom_target(${target}
|
||||||
Qt6::qtattributionsscanner -o "${output_file}" ${attribution_file}
|
Qt6::qtattributionsscanner -o "${output_file}" ${attribution_file}
|
||||||
@@ -281,5 +286,5 @@ function(add_qtc_doc_attribution target attribution_file output_file qdocconf_fi
|
|||||||
WORKING_DIRECTORY "${CMAKE_CURRENT_SOURCE_DIR}"
|
WORKING_DIRECTORY "${CMAKE_CURRENT_SOURCE_DIR}"
|
||||||
VERBATIM
|
VERBATIM
|
||||||
)
|
)
|
||||||
add_dependencies("html_docs_${doc_target}" ${target})
|
add_dependencies(${html_target} ${target})
|
||||||
endfunction()
|
endfunction()
|
||||||
|
Reference in New Issue
Block a user