diff options
author | Alexandru Croitor <alexandru.croitor@qt.io> | 2023-04-11 17:22:46 +0200 |
---|---|---|
committer | Alexandru Croitor <alexandru.croitor@qt.io> | 2023-04-12 09:37:03 +0200 |
commit | dec9919cb256a919f9b3b520a6dbbcc413e2cc7c (patch) | |
tree | 4811ca53f363d91f5c0376547aff9334685cb285 /src | |
parent | 32f6cbe9f09ed80f717ec1836b30e14b60ad2b70 (diff) | |
download | qtdeclarative-dec9919cb256a919f9b3b520a6dbbcc413e2cc7c.tar.gz |
CMake: Mark dependency between QmlMeta and qmlplugin in a static build
Just like we do for workerscript plugin, in a project that uses a
static Qt without using qmlimportscanner, linking to the qmlplugin
automatically initialize the QmlMeta plugin as well.
Otherwise the application errors out with:
module "QtQuick" version 6.6 cannot be imported because:
module "QtQml" plugin "qmlmetaplugin" not found
import QtQuick
Pick-to: 6.5
Fixes: QTBUG-112712
Change-Id: I566eaf94e2a13a8d8bb7b5509af1594c6c3206e9
Reviewed-by: Alexey Edelev <alexey.edelev@qt.io>
Reviewed-by: Amir Masoud Abdol <amir.abdol@qt.io>
Diffstat (limited to 'src')
-rw-r--r-- | src/qml/CMakeLists.txt | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/src/qml/CMakeLists.txt b/src/qml/CMakeLists.txt index 61cd02e313..bf60fb8df0 100644 --- a/src/qml/CMakeLists.txt +++ b/src/qml/CMakeLists.txt @@ -467,6 +467,12 @@ qt_internal_add_resource(Qml "qmlMetaQmldir" if(QT_FEATURE_qml_worker_script) _qt_internal_add_qml_static_plugin_dependency(qmlplugin workerscriptplugin) endif() +# Same for the QmlMeta qml plugin, otherwise you get +# module "QtQuick" version 6.6 cannot be imported because: +# module "QtQml" plugin "qmlmetaplugin" not found +# import QtQuick +# ^ +_qt_internal_add_qml_static_plugin_dependency(qmlplugin QmlMeta) # special case begin remove the block, handled manually # QLALR Grammars: |