AUTOGEN_BETTER_GRAPH_MULTI_CONFIG

Cuando esta propiedad booleana está activada, CMake generará más objetivos por configuración. Así, el gráfico de dependencias será más preciso para los generadores multi-configuración y se evitarán algunas recompilaciones.

Desde Qt 6.8, esta propiedad está activada por defecto. Para versiones anteriores, es necesario habilitarla manualmente para utilizarla. Sin embargo, qt_extract_metatypes y qt_add_qml_module fueron actualizados para soportar AUTOGEN_BETTER_GRAPH_MULTI_CONFIG en Qt 6.8, por lo que obtendrá errores de compilación, a menos que parchee la versión anterior de Qt para soportarlo.

Para establecer esta propiedad globalmente, utilice el siguiente comando:

set(CMAKE_AUTOGEN_BETTER_GRAPH_MULTI_CONFIG ON)

o establézcala en un objetivo:

set_target_properties(app PROPERTIES AUTOGEN_BETTER_GRAPH_MULTI_CONFIG ON)

Vea AUTOGEN_BETTER_GRAPH_MULTI_CONFIG para más información.

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