qt_noo_collect_imported_target_apk_deps

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

此变量在 Qt 6.5 中引入。

注: 此变量为技术预览版,在未来版本中可能会有所更改。

注: 此变量仅用于 Android 平台。

使用 3.21 或更高版本的 CMake 时,构建系统会收集可能与部署相关的导入共享库目标的位置。收集到的目标是从当前处理的可执行目标的目录范围中可到达的目标。这包括目标的源目录范围及其父目录。收集到的位置会传递给androiddeployqt,以便在解析库之间的依赖关系时考虑部署。要禁用此行为,请将此变量设置为TRUE

另请参阅 qt_finalize_project()QT_NO_COLLECT_BUILD_TREE_APK_DEPS

© 2025 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.