AUTOGEN_BETTER_GRAPH_MULTI_CONFIG
Lorsque cette propriété booléenne est activée, CMake génère plus de cibles par configuration. Ainsi, le graphe de dépendance sera plus précis pour les générateurs multi-configuration et certaines recompilations seront évitées.
Depuis Qt 6.8, cette propriété est activée par défaut. Pour les versions antérieures, vous devez l'activer manuellement pour l'utiliser. Cependant, qt_extract_metatypes et qt_add_qml_module ont été mis à jour pour supporter AUTOGEN_BETTER_GRAPH_MULTI_CONFIG dans Qt 6.8, donc vous obtiendrez des erreurs de compilation, à moins que vous ne patchiez l'ancienne version de Qt pour la supporter.
Pour définir cette propriété globalement, utilisez la commande suivante :
set(CMAKE_AUTOGEN_BETTER_GRAPH_MULTI_CONFIG ON)
ou la définir sur une cible :
set_target_properties(app PROPERTIES AUTOGEN_BETTER_GRAPH_MULTI_CONFIG ON)
Voir AUTOGEN_BETTER_GRAPH_MULTI_CONFIG pour plus d'informations.
© 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.