summaryrefslogtreecommitdiffstats
path: root/cmake
diff options
context:
space:
mode:
authorAlexey Edelev <alexey.edelev@qt.io>2021-04-08 15:55:09 +0200
committerAlexey Edelev <alexey.edelev@qt.io>2021-04-26 14:19:04 +0000
commita36a738a931eb9e204e33d71951642131cf40b82 (patch)
tree337e4fe74f10f78889387e491c1ff86a14376e43 /cmake
parent1cb2bb2a28249807b48fc2b4a5995a30eaf69682 (diff)
Skip adding externally added plugins to the plugin meta-sets
Plugin meta-sets are not visible outside of the module build tree, so there is no point in adding dependencies for externally added plugins. Change-Id: Ica5b29b57c032f4fc9b128172aaa806392e9e581 Reviewed-by: Alexandru Croitor <alexandru.croitor@qt.io> (cherry picked from commit bbe26a766748c00da5e2241a9c7ec5e714dd76ad)
Diffstat (limited to 'cmake')
-rw-r--r--cmake/QtPluginHelpers.cmake10
1 files changed, 7 insertions, 3 deletions
diff --git a/cmake/QtPluginHelpers.cmake b/cmake/QtPluginHelpers.cmake
index 497ccc0e89..b3482ee1ef 100644
--- a/cmake/QtPluginHelpers.cmake
+++ b/cmake/QtPluginHelpers.cmake
@@ -150,11 +150,15 @@ function(qt_internal_add_plugin target)
endif()
endif()
- add_dependencies(qt_plugins "${target}")
+ if(TARGET qt_plugins)
+ add_dependencies(qt_plugins "${target}")
+ endif()
if(arg_TYPE STREQUAL "platforms")
- add_dependencies(qpa_plugins "${target}")
+ if(TARGET qpa_plugins)
+ add_dependencies(qpa_plugins "${target}")
+ endif()
- if(_default_plugin)
+ if(_default_plugin AND TARGET qpa_default_plugins)
add_dependencies(qpa_default_plugins "${target}")
endif()
endif()