AUTOGEN_BETTER_GRAPH_MULTI_CONFIG
Quando essa propriedade booleana estiver ativada, o ` CMake ` gerará mais alvos por configuração. Assim, o gráfico de dependências ficará mais preciso para geradores com múltiplas configurações e algumas recompilações serão evitadas.
Desde o Qt 6.8, essa propriedade está ativada por padrão. Para versões mais antigas, é necessário ativá-la manualmente para utilizá-la. No entanto, o `qt_extract_metatypes` e o `qt_add_qml_module` foram atualizados para oferecer suporte ao ` AUTOGEN_BETTER_GRAPH_MULTI_CONFIG ` no Qt 6.8; portanto, você receberá erros de compilação, a menos que aplique um patch na versão mais antiga do Qt para que ela ofereça suporte a essa propriedade.
Para definir essa propriedade globalmente, use o seguinte comando:
set(CMAKE_AUTOGEN_BETTER_GRAPH_MULTI_CONFIG ON)ou defina-a em um alvo:
set_target_properties(app PROPERTIES AUTOGEN_BETTER_GRAPH_MULTI_CONFIG ON)Consulte AUTOGEN_BETTER_GRAPH_MULTI_CONFIG para obter mais informações.
© 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.