Details
-
Task
-
Resolution: Fixed
-
P2: Important
-
None
-
6.0
Description
The target based approach of qt6_add_resources automatically does qt quick / qml file processing.
This doesn't happen with the old non-target based qt5(6)_add_resources function, as well as AUTORCC.
We should document this behaviour, and perhaps discourage the use of AUTORCC going forward.
Resulted from CMake public API discussion at https://codereview.qt-project.org/c/qt/qtbase/+/317353/1/src/corelib/Qt6CoreMacros.cmake#309
From the same comment, there was also discussion about discouraging usage of qrc files with CMake, and recommend using the target based qt6_add_resource approach.
Attachments
Issue Links
- depends on
-
QTBUG-100209 Bring qt6_standard_project_setup into shape for 6.3
- Closed
- relates to
-
QTBUG-88605 Document target based qt_add_resources API
- Closed
- resulted from
-
QTBUG-86827 Document new Qt 6 CMake API
- Closed
For Gerrit Dashboard: QTBUG-87643 | ||||||
---|---|---|---|---|---|---|
# | Subject | Branch | Project | Status | CR | V |
322295,3 | Do not advise using AUTORCC anymore | dev | qt/qtbase | Status: MERGED | +2 | 0 |
322975,3 | Do not advise using AUTORCC anymore | 6.0 | qt/qtbase | Status: MERGED | +2 | 0 |
322976,1 | Do not advise using AUTORCC anymore | 6.0.0 | qt/qtbase | Status: ABANDONED | 0 | 0 |
391143,2 | Remove CMAKE_AUTORCC from demos | dev | qt/qtdoc | Status: MERGED | +2 | 0 |
391229,2 | Remove CMAKE_AUTORCC from demos | 6.3 | qt/qtdoc | Status: MERGED | +2 | 0 |
391230,2 | Remove CMAKE_AUTORCC from demos | 6.2 | qt/qtdoc | Status: MERGED | +2 | 0 |
391353,2 | Don't set CMAKE_AUTORCC in pro2cmake.py | dev | qt/qtbase | Status: MERGED | +2 | 0 |
391359,4 | Examples: Remove unneeded CMake options | dev | qt/qtbase | Status: MERGED | +2 | 0 |
391851,2 | Examples: Remove unneeded CMake options | 6.3 | qt/qtbase | Status: MERGED | +2 | 0 |
392199,4 | qt6_standard_project_setup: Don't enable AUTORCC | dev | qt/qtbase | Status: MERGED | +2 | 0 |
392346,2 | qt6_standard_project_setup: Don't enable AUTORCC | 6.3 | qt/qtbase | Status: MERGED | +2 | 0 |