Skip to content

Fix cmake warning QTP0004 #612

@TheOneRing

Description

@TheOneRing
CMake Warning (dev) at /Users/h.vonreth/openbuild/main/macos-clang-arm64/lib/cmake/Qt6Core/Qt6CoreMacros.cmake:3424 (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/h.vonreth/openbuild/main/macos-clang-arm64/lib/cmake/Qt6Qml/Qt6QmlMacros.cmake:3645 (__qt_internal_setup_policy)
  /Users/h.vonreth/openbuild/main/macos-clang-arm64/lib/cmake/Qt6Qml/Qt6QmlMacros.cmake:951 (qt6_target_qml_sources)
  /Users/h.vonreth/openbuild/main/macos-clang-arm64/share/ECM/modules/ECMQmlModule6.cmake:102 (qt6_add_qml_module)
  src/gui/CMakeLists.txt:106 (ecm_add_qml_module)
This warning is for project developers.  Use -Wno-dev to suppress it

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type:MaintenanceE.g. technical debt, packaging, etc.

    Type

    No type

    Projects

    No projects

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions