Uploaded image for project: 'Qt Design Studio'
  1. Qt Design Studio
  2. QDS-14376

Add policies to generated CMake to avoid warnings

XMLWordPrintable

    • Icon: Suggestion Suggestion
    • Resolution: Unresolved
    • Icon: P3: Somewhat important P3: Somewhat important
    • QDS 4.8.0
    • QDS 4.7.0
    • CMake exporter
    • None
    • Windows

      This configuration warning occurs when a project exported to Creator is configured

      [cmake] CMake Warning (dev) at C:/Qt/6.8.1/msvc2022_64/lib/cmake/Qt6Core/Qt6CoreMacros.cmake:3353 (message):
      [cmake]   Qt policy QTP0001 is not set: ':/qt/qml/' is the default resource prefix
      _[cmake]   for QML modules.  Check https://doc.qt.io/qt-6/qt-cmake-policy-qtp0001.html_
      [cmake]   for policy details.  Use the qt_policy command to set the policy and
      [cmake]   suppress this warning.
      [cmake] 
      [cmake] Call Stack (most recent call first):
      [cmake]   C:/Qt/6.8.1/msvc2022_64/lib/cmake/Qt6Qml/Qt6QmlMacros.cmake:708 (qt_internal_setup_policy)
      [cmake]   Dependencies/Components/src/imports/utils/CMakeLists.txt:6 (qt6_add_qml_module)
      [cmake] This warning is for project developers.  Use -Wno-dev to suppress it.

       

      QTP0001 could be set in the generated CMake to avoid this since it is confusing to users and creates unnecessary noise in the log

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

            knud Knud Dollereder
            indi Indivara Weerasuriya
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

              Created:
              Updated:

                There are no open Gerrit changes