Uploaded image for project: 'Qt'
  1. Qt
  2. QTBUG-92026

qt6_qml_type_registration() generates CMP0116 warnings with CMake 3.20

    XMLWordPrintable

Details

    • All
    • 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

        No reviews matched the request. Check your Options in the drop-down menu of this sections header.

        Activity

          People

            crscott Craig Scott
            crscott Craig Scott
            Votes:
            0 Vote for this issue
            Watchers:
            3 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved:

              Gerrit Reviews

                There are no open Gerrit changes