Uploaded image for project: 'Qt Tools for Android'
  1. Qt Tools for Android
  2. QTTA-97

Created new Qt project shows QTP0001 policy warning on build

    XMLWordPrintable

Details

    • Bug
    • Resolution: Duplicate
    • P2: Important
    • None
    • QtTAS 1.0, QtTAS 2.0
    • QtTAS: General
    • None

    Description

      The standard CMakeLists.txt template that the plugin uses shows the user a warning message about QTP0001 when building it. Not an ideal user experience.

      CMake Warning (dev) at /Users/ollivuolteenaho/Qt/6.8.0/android_arm64_v8a/lib/cmake/Qt6Core/Qt6CoreMacros.cmake:3339 (message):
        Qt policy QTP0001 is not set: ':/qt/qml/' is the default resource prefix
        for QML modules.  Check https://doc.qt.io/qt-6/qt-cmake-policy-qtp0001.html
        for policy details.  Use the qt_policy command to set the policy and
        suppress this warning.Call Stack (most recent call first):
        /Users/ollivuolteenaho/Qt/6.8.0/android_arm64_v8a/lib/cmake/Qt6Qml/Qt6QmlMacros.cmake:627 (__qt_internal_setup_policy)
        /Users/ollivuolteenaho/Qt/6.8.0/android_arm64_v8a/lib/cmake/Qt6Qml/Qt6QmlMacros.cmake:1028 (qt6_add_qml_module)
        CMakeLists.txt:18 (qt_add_qml_module)
      This warning is for project developers.  Use -Wno-dev to suppress it.

      Attachments

        Issue Links

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

          Activity

            People

              olvuolte Olli Vuolteenaho
              olvuolte Olli Vuolteenaho
              Votes:
              0 Vote for this issue
              Watchers:
              1 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved:

                Gerrit Reviews

                  There are no open Gerrit changes