Details
-
Task
-
Resolution: Unresolved
-
P2: Important
-
6.2.3
-
None
Description
We should consider enforcing usage of the configure / qt-configure-module scripts to build Qt, and disallow using plain cmake / qt-cmake to build Qt.
Benefits we would gain from this:
- Validation of configure arguments (a misspelled configure argument issues an error, while a misspelled cmake argument happily continues configuration)
- Saving of the initial configure line, which aids in troubleshooting build issues
- In the future, configure can automatically add --trace-redirect=log.txt --trace-expand --debug-trycompile which we can ask for troubleshooting purposes
Expert users can opt-into building with plain CMake with a custom option, but it should be opt-in, rather than the default.
The plan would be to add a deprecation warning in Qt 6.n if plain cmake is used for configuration.
Then turn the warning into an error in Qt 6.n+1 or 6.n+2.
Tentatively n == 4, or as soon as possible, because more developers might get used to building Qt with cmake instead of configure while transitioning from Qt 5.
This depends on getting configure used in the CI first.
Attachments
Issue Links
- depends on
-
QTQAINFRA-4815 Switch to using configure and qt-configure-module scripts instead of calling CMake directly
- Closed