AUTOGEN_BETTER_GRAPH_MULTI_CONFIG
When this boolean property is enabled, CMake
will generate more per-config targets. Thus, the dependency graph will be more accurate for multi-configuration generators and some recompilations will be avoided.
Since Qt 6.8, this property is enabled by default. For older versions, you need to enable it manually to use it. However, qt_extract_metatypes and qt_add_qml_module were updated to support AUTOGEN_BETTER_GRAPH_MULTI_CONFIG
in Qt 6.8, so you will get build errors, unless you patch the older Qt version to support it.
To set this property globally, use the following command:
set(CMAKE_AUTOGEN_BETTER_GRAPH_MULTI_CONFIG ON)
or set it on a target:
set_target_properties(app PROPERTIES AUTOGEN_BETTER_GRAPH_MULTI_CONFIG ON)
See AUTOGEN_BETTER_GRAPH_MULTI_CONFIG for more information.