AUTOGEN_BETTER_GRAPH_MULTI_CONFIG
Cuando esta propiedad booleana está activada, CMake generará más objetivos por configuración. De este modo, el gráfico de dependencias será más preciso para los generadores con múltiples configuraciones y se evitarán algunas recompilaciones.
Desde Qt 6.8, esta propiedad está activada por defecto. En versiones anteriores, es necesario activarla manualmente para poder utilizarla. Sin embargo, qt_extract_metatypes y qt_add_qml_module se actualizaron para ser compatibles con « AUTOGEN_BETTER_GRAPH_MULTI_CONFIG » en Qt 6.8, por lo que se producirán errores de compilación a menos que se aplique un parche a la versión anterior de Qt para que la admita.
Para configurar esta propiedad de forma global, utiliza el siguiente comando:
set(CMAKE_AUTOGEN_BETTER_GRAPH_MULTI_CONFIG ON)o configúrela en un objetivo:
set_target_properties(app PROPERTIES AUTOGEN_BETTER_GRAPH_MULTI_CONFIG ON)Consulta AUTOGEN_BETTER_GRAPH_MULTI_CONFIG para obtener 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.