QT_QML_NO_CACHEGEN
This variable was introduced in Qt 6.8.1.
QT_QML_NO_CACHEGEN
is a CMake variable that can be set to disable the compilation of QML files into bytecode or C++ code for QML targets created by qt6_add_qml_module().
It has the same effect as setting the NO_CACHEGEN
option of qt6_add_qml_module(), but allows doing so on a per-directory or project basis.
Turn on this option to reduce the number of build steps necessary to complete a build, and thereby shorten the develop-debug iteration cycle.
To minimize application size, turn off this option, and instead use QT_DISCARD_FILE_CONTENTS to remove the QML files embedded into the resource system.
The variable can be set in the project's CMakeLists.txt as follows:
set(QT_QML_NO_CACHEGEN TRUE) qt_add_qml_module(MyModule URI MyModule VERSION 1.0 ... )
© 2024 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.