Qt
Internal/Contributor docs for the Qt SDK. Note: These are NOT official API docs; those are found at https://doc.qt.io/
Loading...
Searching...
No Matches
cmake-standard-properties.qdoc
Go to the documentation of this file.
1
// Copyright (C) 2023 The Qt Company Ltd.
2
// SPDX-License-Identifier: LicenseRef-Qt-Commercial OR GFDL-1.3-no-invariants-only
3
4
/*!
5
\page cmake-standard-property-autogen-better-graph-multi-config.html
6
\ingroup cmake-standard-properties
7
8
\title AUTOGEN_BETTER_GRAPH_MULTI_CONFIG
9
10
\brief Improves the dependency graph for multi-configuration generators when you
11
set it on a target.
12
13
When this boolean property is enabled, \c{CMake} will generate more per-config targets.
14
Thus, the dependency graph will be more accurate for multi-configuration
15
generators and some recompilations will be avoided.
16
17
Since Qt 6.8, this property is enabled by default. For older versions,
18
you need to enable it manually to use it.
19
However, \l{qt_extract_metatypes} and \l{qt_add_qml_module} were updated to
20
support \c{AUTOGEN_BETTER_GRAPH_MULTI_CONFIG} in Qt 6.8, so you will get build
21
errors, unless you patch the older Qt version to support it.
22
23
To set this property globally, use the following command:
24
\snippet cmake-macros/examples.cmake AUTOGEN_BETTER_GRAPH_MULTI_CONFIG_1
25
or set it on a target:
26
\snippet cmake-macros/examples.cmake AUTOGEN_BETTER_GRAPH_MULTI_CONFIG_2
27
28
See \l{https://cmake.org/cmake/help/latest/prop_tgt/AUTOGEN_BETTER_GRAPH_MULTI_CONFIG.html}{AUTOGEN_BETTER_GRAPH_MULTI_CONFIG} for more information.
29
*/
qtbase
src
corelib
doc
src
cmake
cmake-standard-properties.qdoc
Generated on
for Qt by
1.14.0