aboutsummaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
Diffstat (limited to 'src')
-rw-r--r--src/qml/Qt6QmlBuildInternals.cmake7
1 files changed, 7 insertions, 0 deletions
diff --git a/src/qml/Qt6QmlBuildInternals.cmake b/src/qml/Qt6QmlBuildInternals.cmake
index b70dd633a8..7ee11b241e 100644
--- a/src/qml/Qt6QmlBuildInternals.cmake
+++ b/src/qml/Qt6QmlBuildInternals.cmake
@@ -205,8 +205,15 @@ function(qt_internal_add_qml_module target)
_qt_internal_compute_qml_plugin_class_name_from_uri("${arg_URI}" arg_CLASS_NAME)
endif()
+ # If the module is explicitly marked as STATIC, the plugin should inherit that as well.
+ set(static_plugin "")
+ if(arg_STATIC)
+ set(static_plugin "STATIC")
+ endif()
+
# Create plugin target now so we can set internal things
list(APPEND plugin_args
+ ${static_plugin}
PLUGIN_TYPE qml_plugin
DEFAULT_IF FALSE
OUTPUT_DIRECTORY ${arg_OUTPUT_DIRECTORY}