Details
-
Bug
-
Resolution: Fixed
-
P2: Important
-
6.8
-
None
-
ff3abb650 (dev), e71f0d0a8 (dev), cd008745a (6.8), 3b11e75d4 (6.8)
Description
When building declarative dev:
CMake Warning (dev) at /Users/torarne/build/qt/6.x-xcode-16/qtbase/lib/cmake/Qt6Core/Qt6CoreMacros.cmake:3373 (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):
qtdeclarative/src/qml/Qt6QmlMacros.cmake:3220 (__qt_internal_setup_policy)
qtdeclarative/src/qml/Qt6QmlMacros.cmake:891 (qt6_target_qml_sources)
qtdeclarative/src/qml/Qt6QmlMacros.cmake:1148 (qt6_add_qml_module)
qtdeclarative/src/qml/doc/snippets/cmake/qt_target_qml_sources/CMakeLists.txt:23 (qt_add_qml_module)
This warning is for project developers. Use -Wno-dev to suppress it.
CMake Warning (dev) at /Users/torarne/build/qt/6.x-xcode-16/qtbase/lib/cmake/Qt6Core/Qt6CoreMacros.cmake:3373 (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):
qtdeclarative/src/qml/Qt6QmlMacros.cmake:3220 (__qt_internal_setup_policy)
qtdeclarative/src/qml/Qt6QmlMacros.cmake:891 (qt6_target_qml_sources)
qtdeclarative/src/qml/Qt6QmlBuildInternals.cmake:304 (qt6_add_qml_module)
qtdeclarative/src/quicknativestyle/CMakeLists.txt:37 (qt_internal_add_qml_module)
This warning is for project developers. Use -Wno-dev to suppress it.
Attachments
Issue Links
- relates to
-
QTBUG-126201 Qt examples output CMake warning about Qt policy QTP0004
-
- Closed
-
For Gerrit Dashboard: QTBUG-127950 | ||||||
---|---|---|---|---|---|---|
# | Subject | Branch | Project | Status | CR | V |
583883,2 | QTP0004: Document resource file interaction | dev | qt/qtdeclarative | Status: MERGED | +2 | 0 |
583886,3 | Native style: Fix qtp004 warning | dev | qt/qtdeclarative | Status: MERGED | +2 | 0 |
587826,2 | Native style: Fix qtp004 warning | 6.8 | qt/qtdeclarative | Status: MERGED | +2 | 0 |
587828,2 | QTP0004: Document resource file interaction | 6.8 | qt/qtdeclarative | Status: MERGED | +2 | 0 |