summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorCraig Scott <craig.scott@qt.io>2021-09-08 18:02:10 +1000
committerQt Cherry-pick Bot <cherrypick_bot@qt-project.org>2021-09-09 18:31:51 +0000
commite3add3f0d3bfbad3d47ea0155b699612c36d0b14 (patch)
treebf0a4842719c20be800c48e15b4b3efdc306118f
parenta1865f01204f2e266a9e3fbe0336bcaecd86993b (diff)
Update Qt5:: namespaced targets in snippets to versionless Qt::
The docs for CMake commands all show the versionless commands as the primary name, with versioned commands added as a note. Use the same preference for targets for consistency and update the Qt5:: namespaces to Qt:: rather than Qt6::. Task-number: QTBUG-95712 Change-Id: I6bf1929a11656f88e27bb5877e9521a3a651361e Reviewed-by: Alexandru Croitor <alexandru.croitor@qt.io> (cherry picked from commit afb7d3b814ee30ae9673a925612fcd2ed676c661) Reviewed-by: Qt Cherry-pick Bot <cherrypick_bot@qt-project.org>
-rw-r--r--src/corelib/doc/snippets/cmake-macros/examples.cmake8
1 files changed, 4 insertions, 4 deletions
diff --git a/src/corelib/doc/snippets/cmake-macros/examples.cmake b/src/corelib/doc/snippets/cmake-macros/examples.cmake
index 56d667914d..8b28c18a30 100644
--- a/src/corelib/doc/snippets/cmake-macros/examples.cmake
+++ b/src/corelib/doc/snippets/cmake-macros/examples.cmake
@@ -72,11 +72,11 @@ qt5_import_plugins(myapp
#! [qt_import_plugins]
add_executable(myapp main.cpp)
-target_link_libraries(myapp Qt5::Gui Qt5::Sql)
+target_link_libraries(myapp Qt::Gui Qt::Sql)
qt_import_plugins(myapp
- INCLUDE Qt5::QCocoaIntegrationPlugin
- EXCLUDE Qt5::QMinimalIntegrationPlugin
- INCLUDE_BY_TYPE imageformats Qt5::QGifPlugin Qt5::QJpegPlugin
+ INCLUDE Qt::QCocoaIntegrationPlugin
+ EXCLUDE Qt::QMinimalIntegrationPlugin
+ INCLUDE_BY_TYPE imageformats Qt::QGifPlugin Qt::QJpegPlugin
EXCLUDE_BY_TYPE sqldrivers
)
#! [qt_import_plugins]