1// Copyright (C) 2023 The Qt Company Ltd.
2// SPDX-License-Identifier: LicenseRef-Qt-Commercial OR GFDL-1.3-no-invariants-only
5\page cmake-standard-property-autogen-better-graph-multi-config.html
6\ingroup cmake-standard-properties
8\title AUTOGEN_BETTER_GRAPH_MULTI_CONFIG
10\brief Improves the dependency graph for multi-configuration generators when you
13When this boolean property is enabled, \c{CMake} will generate more per-config targets.
14Thus, the dependency graph will be more accurate for multi-configuration
15generators and some recompilations will be avoided.
17Since Qt 6.8, this property is enabled by default. For older versions,
18you need to enable it manually to use it.
19However, \l{qt_extract_metatypes} and \l{qt_add_qml_module} were updated to
20support \c{AUTOGEN_BETTER_GRAPH_MULTI_CONFIG} in Qt 6.8, so you will get build
21errors, unless you patch the older Qt version to support it.
23See \l{https://cmake.org/cmake/help/latest/prop_tgt/AUTOGEN_BETTER_GRAPH_MULTI_CONFIG.html}{AUTOGEN_BETTER_GRAPH_MULTI_CONFIG} for more information.