Details
-
Bug
-
Resolution: Done
-
P2: Important
-
6.2.0 Beta1
Description
Some Qt builds in CI failed when configured with CMake 3.21.0
Job https://testresults.qt.io/coin/integration/qt/qt5/tasks/web_qt_qt5_1626704027212
https://codereview.qt-project.org/c/qt/qt5/+/360035
There were two failures.
One in an example in qtscxml
ninja: error: 'C:/Users/qt/work/qt/qtscxml/examples/scxml/mediaplayer-widgets-static/mediaplayer-widgets-static_autogen/mocs_compilation_Debug.cpp', needed by 'examples/scxml/mediaplayer-widgets-static/CMakeFiles/mediaplayer-widgets-static.dir/Debug/mediaplayer-widgets-static_autogen/mocs_compilation_Debug.cpp.obj', missing and no known rule to make it
another in qttools itself
ninja: error: 'C:/Users/qt/work/qt/qttools/src/designer/src/lib/Designer_autogen/mocs_compilation_Debug.cpp', needed by 'src/designer/src/lib/CMakeFiles/Designer.dir/Debug/Designer_autogen/mocs_compilation_Debug.cpp.obj', missing and no known rule to make it
The issue needs a bunch of conditions to reproduce.
CMake 3.21.0 + Ninja Multi-Config generator, cross config mode enabled, the project using a .ui file + AUTOUIC + AUTOMOC, the .ui file needs to be in some parent directory relative to the target that includes it.
The issue does not reproduce with CMake 3.20.5.
Attaching minimal repro project.
Attachments
Issue Links
- relates to
-
QTBUG-95018 Change the minimum required CMake version for building and using Qt
- Closed
For Gerrit Dashboard: QTBUG-95305 | ||||||
---|---|---|---|---|---|---|
# | Subject | Branch | Project | Status | CR | V |
361188,3 | CMake: Work around CMake 3.21.0 AUTOUIC issue with cross config Ninja | dev | qt/qttools | Status: MERGED | +2 | 0 |
361191,2 | CMake: Work around CMake 3.21.0 AUTOUIC issue with cross config Ninja | dev | qt/qtscxml | Status: MERGED | +2 | 0 |
361730,2 | CMake: Work around CMake 3.21.0 AUTOUIC issue with cross config Ninja | 6.2 | qt/qtscxml | Status: MERGED | +2 | 0 |
361732,2 | CMake: Work around CMake 3.21.0 AUTOUIC issue with cross config Ninja | 6.2 | qt/qttools | Status: MERGED | +2 | 0 |