QT_NO_COLLECT_IMPORTED_TARGET_APK_DEPS | Qt Core | Qt 6.11.1
Description: Prevents collecting of imported targets during Android deployment.

- Qt 6.11
- Qt Core
- CMake Variables in Qt6 Core
- QT_NO_COLLECT_IMPORTED_TARGET_APK_DEPS
- Qt 6.11.1 Reference Documentation

# QT_NO_COLLECT_IMPORTED_TARGET_APK_DEPS

Prevents collecting of imported targets during Android deployment.

This variable was introduced in Qt 6.5.

Note: This variable is in technology preview and may change in future releases.

Note: This variable is used only if targeting the Android platform.

When using CMake version 3.21 or later, the build system collects the locations of imported shared library targets that might be relevant for deployment. The collected targets are those that are reachable from the directory scope of the currently processed executable target. That includes the target's source directory scope and its parents. The collected locations are passed to androiddeployqt for deployment consideration when resolving dependencies between libraries. To disable this behavior, set this variable to `TRUE`.

See also qt_finalize_project() and QT_NO_COLLECT_BUILD_TREE_APK_DEPS.