QT_NO_COLLECT_IMPORTED_TARGET_APK_DEPS

在 Android 部署过程中,禁止收集导入的目标。

该变量于 Qt 6.5 版本中引入。

注意:该 变量处于技术预览阶段,未来版本中可能会发生变化。

注意: 仅当目标平台为 Android 时,才会使用此 变量。

在使用 CMake 3.21 及更高版本时,构建系统会收集已导入的共享库目标的位置信息,这些信息可能与部署相关。 被收集的目标是指从当前正在处理的可执行目标的目录作用域内可访问的目标。这包括该目标的源目录作用域及其父目录。收集到的位置会被传递给androiddeployqt,以便在解析库之间的依赖关系时作为部署考量因素。若要禁用此行为,请将此变量设置为TRUE 。

另请参阅 qt_finalize_project()和QT_NO_COLLECT_BUILD_TREE_APK_DEPS。

© 2026 The Qt Company Ltd. Documentation contributions included herein are the copyrights of their respective owners. The documentation provided herein is licensed under the terms of the GNU Free Documentation License version 1.3 as published by the Free Software Foundation. Qt and respective logos are trademarks of The Qt Company Ltd. in Finland and/or other countries worldwide. All other trademarks are property of their respective owners.