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
-
For Gerrit Dashboard: QTBUG-86669 | ||||||
---|---|---|---|---|---|---|
# | Subject | Branch | Project | Status | CR | V |
325988,3 | CMake: Support deferred finalization for qt6_add_executable() | dev | qt/qtbase | Status: MERGED | +2 | 0 |
326608,2 | CMake: Support deferred finalization for qt6_add_executable() | 6.0 | qt/qtbase | Status: MERGED | +2 | 0 |
334563,4 | qt6_finalize_executable(): Enable finalizers to be set per-target | dev | qt/qtbase | Status: MERGED | +2 | 0 |
334568,3 | Add finalizer to call qt6_import_qml_plugins() automatically | dev | qt/qtdeclarative | Status: MERGED | +2 | 0 |
336108,2 | Add finalizer to call qt6_import_qml_plugins() automatically | 6.1 | qt/qtdeclarative | Status: MERGED | +2 | 0 |
336111,2 | qt6_finalize_executable(): Enable finalizers to be set per-target | 6.1 | qt/qtbase | Status: MERGED | +2 | 0 |