Qt CMake policies | Build with CMake | Qt 6.11.0
Description: Provides a list of available Qt CMake policies.

- Qt 6.11
- Build with CMake
- Qt CMake policies
- Qt 6.11.0 Reference Documentation

Imported targets ◦ Qt 5 and Qt 6 compatibility

# Qt CMake policies

Qt CMake policies maintain the backward compatibility across multiple releases. Every new policy starts by warning you about a deprecated feature or behavior; followed by a warning message that briefly describes the change. To disable a policy's warning, explicitly request the `NEW` or non-backward compatible behavior of a policy using the qt_policy() command.

## Policies

QTP0001 | ':/qt/qml/' is the default resource prefix for QML modules
QTP0002 | Target properties that specify Android-specific paths may contain generator expressions
QTP0003 | Consider the BUILD_SHARED_LIBS value when creating Qt libraries
QTP0004 | Extra directories with QML files in a QML module need extra qmldir files
QTP0005 | Qt_add_qml_module's DEPENDENCIES argument accepts targets

Imported targets ◦ Qt 5 and Qt 6 compatibility