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.
As part of the free Business evaluation, we offer a free welcome call for companies, to talk about your requirements, and how the Felgo SDK & Services can help you. Just sign up and schedule your call.
Sign up now to start your free Business evaluation: