Doc: Improve AUTOGEN_BETTER_GRAPH_MULTI_CONFIG documentation

Pick-to: 6.8
Task-number: QTBUG-126461
Change-Id: I9d7fa477b7889dfef009bbf8e09b281212b70ea9
Reviewed-by: Alexandru Croitor <alexandru.croitor@qt.io>
This commit is contained in:
Orkun Tokdemir 2024-08-06 12:19:18 +02:00
parent 6f46f85899
commit f8409dcc68
2 changed files with 13 additions and 0 deletions

View File

@ -104,3 +104,11 @@ add_subdirectory(mylib)
qt_finalize_project() qt_finalize_project()
#! [qt_finalize_project_manual] #! [qt_finalize_project_manual]
#! [AUTOGEN_BETTER_GRAPH_MULTI_CONFIG_1]
set(CMAKE_AUTOGEN_BETTER_GRAPH_MULTI_CONFIG ON)
#! [AUTOGEN_BETTER_GRAPH_MULTI_CONFIG_1]
#! [AUTOGEN_BETTER_GRAPH_MULTI_CONFIG_2]
set_target_properties(app PROPERTIES AUTOGEN_BETTER_GRAPH_MULTI_CONFIG ON)
#! [AUTOGEN_BETTER_GRAPH_MULTI_CONFIG_2]

View File

@ -20,5 +20,10 @@ However, \l{qt_extract_metatypes} and \l{qt_add_qml_module} were updated to
support \c{AUTOGEN_BETTER_GRAPH_MULTI_CONFIG} in Qt 6.8, so you will get build support \c{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. errors, unless you patch the older Qt version to support it.
To set this property globally, use the following command:
\snippet cmake-macros/examples.cmake AUTOGEN_BETTER_GRAPH_MULTI_CONFIG_1
or set it on a target:
\snippet cmake-macros/examples.cmake AUTOGEN_BETTER_GRAPH_MULTI_CONFIG_2
See \l{https://cmake.org/cmake/help/latest/prop_tgt/AUTOGEN_BETTER_GRAPH_MULTI_CONFIG.html}{AUTOGEN_BETTER_GRAPH_MULTI_CONFIG} for more information. See \l{https://cmake.org/cmake/help/latest/prop_tgt/AUTOGEN_BETTER_GRAPH_MULTI_CONFIG.html}{AUTOGEN_BETTER_GRAPH_MULTI_CONFIG} for more information.
*/ */