AUTOGEN_BETTER_GRAPH_MULTI_CONFIG

Quando questa proprietà booleana è abilitata, CMake genererà un numero maggiore di target per ciascuna configurazione. Di conseguenza, il grafico delle dipendenze risulterà più accurato per i generatori con configurazioni multiple e si eviteranno alcune ricompilazioni.

A partire da Qt 6.8, questa proprietà è abilitata per impostazione predefinita. Per le versioni precedenti, è necessario abilitarla manualmente per poterla utilizzare. Tuttavia, qt_extract_metatypes e qt_add_qml_module sono stati aggiornati per supportare AUTOGEN_BETTER_GRAPH_MULTI_CONFIG in Qt 6.8, pertanto si verificheranno errori di compilazione a meno che non si applichi una patch alla versione precedente di Qt per renderla compatibile.

Per impostare questa proprietà a livello globale, utilizzare il seguente comando:

set(CMAKE_AUTOGEN_BETTER_GRAPH_MULTI_CONFIG ON)

oppure impostarla su un target:

set_target_properties(app PROPERTIES AUTOGEN_BETTER_GRAPH_MULTI_CONFIG ON)

Per ulteriori informazioni, consultare AUTOGEN_BETTER_GRAPH_MULTI_CONFIG.

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