Uploaded image for project: 'Qt'
  1. Qt
  2. QTBUG-126459 CMake API Review for Qt 6.8
  3. QTBUG-126470

Address Qt 6.8 CMake API review notes for qt_add_qml_module behavior change qt.conf

    XMLWordPrintable

Details

    • Technical task
    • Resolution: Unresolved
    • P2: Important
    • None
    • Build System: CMake
    • None

    Description

      Creates a qt.conf file in the build directory of each executable, when using CMake 3.19+,
      to set up qml import paths for the `DEPENDENCIES` and `IMPORTS` targets.

      https://codereview.qt-project.org/c/qt/qtdeclarative/+/560608 - qt_add_qml_module: Create qt.conf in build dir

      *Notes:*

      What is behavior for < 3.19? Appears to be no-op without a warning?
      Does introducing an opt-out make sense?

      *Action points:*
      AP: Check if we can support older cmake versions, or if we should issue a warning
      AP: Double check that the qt.conf is only created if the QTP0005 policy is NEW
      AP: Add documentation somewhere
      AP: Add an opt out option, to not generated the qt.conf in case of some conflict

      Attachments

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

        Activity

          People

            qtbuildsystem Qt Build System Team
            alexandru.croitor Alexandru Croitor
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

            Dates

              Created:
              Updated:

              Gerrit Reviews

                There are no open Gerrit changes