Prevents collecting of imported targets during Android deployment.
This variable was introduced in Qt 6.5.
注意: This variable is in technology preview and may change in future releases.
注意: 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 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. Set
QT_NO_COLLECT_IMPORTED_TARGET_APK_DEPS
to
TRUE
to disable this behavior.
另请参阅 qt_finalize_project() and QT_NO_COLLECT_BUILD_TREE_APK_DEPS .