autogen_better_graph_multi_config

このブール値のプロパティを有効にすると、CMake 、より多くのコンフィグごとのターゲットが生成されます。したがって、依存関係グラフはマルチコンフィギュレーションジェネレータに対してより正確になり、いくつかの再コンパイルが回避されます。

Qt 6.8 以降、このプロパティはデフォルトで有効になっています。それ以前のバージョンでは、使用するには手動で有効にする必要があります。しかし、qt_extract_metatypesqt_add_qml_moduleは Qt 6.8 でAUTOGEN_BETTER_GRAPH_MULTI_CONFIG をサポートするように更新されたため、古い Qt バージョンにパッチを当てない限り、ビルドエラーが発生します。

このプロパティをグローバルに設定するには、次のコマンドを使用します:

set(CMAKE_AUTOGEN_BETTER_GRAPH_MULTI_CONFIG ON)

またはターゲットに設定します:

set_target_properties(app PROPERTIES AUTOGEN_BETTER_GRAPH_MULTI_CONFIG ON)

詳細はAUTOGEN_BETTER_GRAPH_MULTI_CONFIGを参照してください。

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