Details
-
Bug
-
Resolution: Done
-
P2: Important
-
6.1.0 Beta2
-
None
-
-
8deb1b279fad2b10598af0870dd3b0d99f5ef128 (qt/qtdeclarative/dev) a80ce81b5fe7befde34e4fbab91e09013288f284 (qt/qtdeclarative/6.0) 43cd08cde3e9115753a6b3a817419f199c703405 (qt/qtdeclarative/6.1)
Description
When using the Ninja generator, qt6_qml_type_registration() writes out a *.d depfile. CMake 3.20 introduced policy CMP0116 which now warns when this file is specified by or uses relative paths instead of absolute (see https://gitlab.kitware.com/cmake/cmake/-/issues/21959 for a related bug in CMake 3.20.0-rc5 that will hide this one until fixed). The name of the cpp file embedded in the *.d files is given as a path relative to the project's BINARY_DIR, but it needs to be an absolute path to give the correct, warning-free behavior.
Attachments
For Gerrit Dashboard: QTBUG-92026 | ||||||
---|---|---|---|---|---|---|
# | Subject | Branch | Project | Status | CR | V |
341115,2 | Prevent CMP0116 warning with CMake 3.20 or later | dev | qt/qtdeclarative | Status: MERGED | +2 | 0 |
341281,2 | Prevent CMP0116 warning with CMake 3.20 or later | 6.1 | qt/qtdeclarative | Status: MERGED | +2 | 0 |
341282,2 | Prevent CMP0116 warning with CMake 3.20 or later | 6.0 | qt/qtdeclarative | Status: MERGED | +2 | 0 |