qt_qml_generate_aotstats
该变量在 Qt 6.8.3 中引入。
当使用 qt_add_qml_modules 配置 QML 项目时,默认情况下将收集 QML 代码编译过程中的统计数据。你可以通过设置QT_QML_GENERATE_AOTSTATS
变量,明确选择加入或退出。可以通过将
-DQT_QML_GENERATE_AOTSTATS=OFF
或在首次调用qt_add_qml_module 之前直接在相应的 CMakeLists.txt 文件中设置。
set(QT_QML_GENERATE_AOTSTATS OFF)
© 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.