summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorKai Köhne <kai.koehne@qt.io>2023-08-07 14:16:09 +0200
committerQt Cherry-pick Bot <cherrypick_bot@qt-project.org>2023-08-08 17:15:54 +0000
commit872ea793fe365eae6ead8d21bb50863854f95042 (patch)
tree1aa8fbc91e25263c2e8f2879a9e24b3e160cce0f
parent8ae51aa0acc6a2e251cb4b932efa6d7d487f8a89 (diff)
CMake: Add dependencies from qhelpgenerator to needed plugins
Add build dependencies between helpgenerator and the two plugins it needs. This allows one to run a top level documentation build with just configure cmake --build . docs Change-Id: I50d96cdcb3873beb9399c3441b3becf2fb79c6ec Reviewed-by: Alexandru Croitor <alexandru.croitor@qt.io> (cherry picked from commit 85e769fc36c1c9da995f5761bf9cca4b37e7eaa1) Reviewed-by: Qt Cherry-pick Bot <cherrypick_bot@qt-project.org>
-rw-r--r--src/assistant/qhelpgenerator/CMakeLists.txt15
1 files changed, 10 insertions, 5 deletions
diff --git a/src/assistant/qhelpgenerator/CMakeLists.txt b/src/assistant/qhelpgenerator/CMakeLists.txt
index 7ef517b13..93611658f 100644
--- a/src/assistant/qhelpgenerator/CMakeLists.txt
+++ b/src/assistant/qhelpgenerator/CMakeLists.txt
@@ -23,12 +23,13 @@ qt_internal_add_tool(${target_name}
)
qt_internal_return_unless_building_tools()
+set(needed_plugins
+ QMinimalIntegrationPlugin
+ QSQLiteDriverPlugin
+)
+list(TRANSFORM needed_plugins PREPEND Qt:: OUTPUT_VARIABLE needed_plugin_targets)
+
if(NOT QT_BUILD_SHARED_LIBS)
- set(needed_plugins
- QMinimalIntegrationPlugin
- QSQLiteDriverPlugin
- )
- list(TRANSFORM needed_plugins PREPEND Qt:: OUTPUT_VARIABLE needed_plugin_targets)
if(QT_SUPERBUILD)
# In a top-level build, qt_import_plugins() is a no-op because
# __qt_internal_add_static_plugins_once() is not called.
@@ -59,4 +60,8 @@ ${import_plugin_code}
INCLUDE ${needed_plugin_targets}
)
endif()
+else() # QT_BUILD_SHARED_LIBS
+ if(QT_SUPERBUILD)
+ add_dependencies(qhelpgenerator ${needed_plugins})
+ endif()
endif()