Uploaded image for project: 'Qt Creator'
  1. Qt Creator
  2. QTCREATORBUG-28967

[QtCreator 10.0.0] CMake warning: Qt policy QTP0001 is not set: ':/qt/qml/' is the default resource prefix for QML modules

    XMLWordPrintable

Details

    • Bug
    • Resolution: Unresolved
    • P2: Important
    • None
    • Qt Creator 10.0.0
    • Quick / QML Support

    Description

      When building a Qt Creator Application wizard generated quick application (based on cmake) there is a warning:

      CMake Warning (dev) at /home/qt/RTA/B2Qt_6.5.0/6.5.0/Boot2Qt/imx8qm-mek/toolchain/sysroots/cortexa72-cortexa53-crypto-poky-linux/usr/lib/cmake/Qt6Core/Qt6CoreMacros.cmake:2690 (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):
        /home/qt/RTA/B2Qt_6.5.0/6.5.0/Boot2Qt/imx8qm-mek/toolchain/sysroots/cortexa72-cortexa53-crypto-poky-linux/usr/lib/cmake/Qt6Qml/Qt6QmlMacros.cmake:445 (__qt_internal_setup_policy)
        /home/qt/RTA/B2Qt_6.5.0/6.5.0/Boot2Qt/imx8qm-mek/toolchain/sysroots/cortexa72-cortexa53-crypto-poky-linux/usr/lib/cmake/Qt6Qml/Qt6QmlMacros.cmake:684 (qt6_add_qml_module)
        CMakeLists.txt:15 (qt_add_qml_module)
      This warning is for project developers.  Use -Wno-dev to suppress it.

      Attachments

        Activity

          People

            qtqmlteam Qt Qml Team User
            mipohjan Milla Pohjanheimo
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

            Dates

              Created:
              Updated: