diff --git a/cmake/QtBuild.cmake b/cmake/QtBuild.cmake index cac9e22c73..982ac52c5a 100644 --- a/cmake/QtBuild.cmake +++ b/cmake/QtBuild.cmake @@ -3247,6 +3247,12 @@ function(qt_internal_walk_libs target out_var dict_name operation) lib "${lib}") endwhile() + # Skip static plugins. + set(_is_plugin_marker_genex "\\$") + if(lib MATCHES "${_is_plugin_marker_genex}") + continue() + endif() + if(lib MATCHES "^\\$>") set(_no_plugins_genex "$>") + # Plugin genex marker for prl processing. + set(_is_plugin_marker_genex "$") + # In super builds the rules below pollute the dependency rule for the # plugin target when it's being build, causing cyclic dependencies. # to overcome this, we check if the current target where this rule evaluates @@ -94,6 +97,7 @@ if(NOT @BUILD_SHARED_LIBS@) # Complete condition that defines whether a static plugin is linked string(CONCAT _plugin_condition "$