Details
-
Bug
-
Resolution: Done
-
P2: Important
-
6.0
-
c71c48f5125c116f01f615f51f10e4f2877b2b1d (qt/qtdeclarative/dev) ae68d95b8c1c56ae907cbe88122dd79bafd20b72 (qt/qtdeclarative/6.1)
Description
Currently users building a qml app using a static Qt build need to call qt_import_qml_plugins. The same is true for all our Qt examples.
Investigate adding additional behaviour to qt_add_executable() which would use CMake's cmake_language(DEFER CALL) when CMake version is at least 3.19.
Important discussion was held as part of the CMake Public API review meeting
https://git.qt.io/alcroito/qt6-cmake-api-review/-/blob/master/finalizers0.cmake
Attachments
Issue Links
- depends on
-
QTBUG-90820 Build examples as external projects within the main build
- In Progress
- is duplicated by
-
QTBUG-86947 REG: Qt Quick applications do not work with static CMake build
- Closed
-
QTBUG-90337 static declarative app built with cmake fail to run
- Closed
- is required for
-
QTBUG-89531 wasm: declarative app builds result in "Qt6::qt_plugins-NOTFOUND".
- Closed
- relates to
-
QTBUG-88840 No way to pass QT_ANDROID_PACKAGE_SOURCE_DIR for qt6_add_executable
- Closed
-
QTBUG-90819 Linking relationships to plugins are incorrectly specified
- Closed
-
QTBUG-87453 Examples not compiling due 'CMake Error at ../lib/cmake/Qt6Qml/Qt6QmlMacros.cmake:134 (message)'
- Closed
-
QTBUG-90820 Build examples as external projects within the main build
- In Progress
-
QTBUG-77377 Add CMake feature for a function to be called when a target is "closed" (scope finalizers)
- Closed
- resulted from
-
QTBUG-85961 Port Qt5QmlImportScanner to Qt6
- Closed