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

Qt examples output CMake warning about Qt policy QTP0004

    XMLWordPrintable

Details

    • Bug
    • Resolution: Fixed
    • P1: Critical
    • 6.8
    • 6.8
    • QML: Tooling
    • None
    • 5b0f6b513 (dev), 15a49ef0c (dev), 2a32ec77c (dev), f5a9f5147 (6.8), 3dc876640 (6.8), 7f150823c (6.8), b38695816 (dev), c9a4c1d53 (6.8), 5b2e51a53 (dev), ccb4b5ce5 (6.8), ebced4ce6 (dev), 971532893 (6.8)

    Description

      CMake Warning (dev) at /Users/torarne/build/qt/6.x-ios/qtbase/lib/cmake/Qt6Core/Qt6CoreMacros.cmake:3339 (message):
        Qt policy QTP0004 is not set: You need qmldir files for each extra
        directory that contains .qml files for your module.  Check
        https://doc.qt.io/qt-6/qt-cmake-policy-qtp0004.html for policy details.
        Use the qt_policy command to set the policy and suppress this warning.Call Stack (most recent call first):
        /Users/torarne/build/qt/6.x-ios/qtbase/lib/cmake/Qt6Qml/Qt6QmlMacros.cmake:2773 (__qt_internal_setup_policy)
        /Users/torarne/build/qt/6.x-ios/qtbase/lib/cmake/Qt6Qml/Qt6QmlMacros.cmake:656 (qt6_target_qml_sources)
        /Users/torarne/build/qt/6.x-ios/qtbase/lib/cmake/Qt6Qml/Qt6QmlMacros.cmake:789 (qt6_add_qml_module)
        CMakeLists.txt:28 (qt_add_qml_module)
      This warning is for project developers.  Use -Wno-dev to suppress it. 

      Our examples should ideally be warning free 

      Attachments

        Issue Links

          For Gerrit Dashboard: QTBUG-126201
          # Subject Branch Project Status CR V

          Activity

            People

              fabiankosmale Fabian Kosmale
              vestbo Tor Arne Vestbø
              Votes:
              0 Vote for this issue
              Watchers:
              9 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved: