diff options
author | Kai Koehne <kai.koehne@qt.io> | 2020-10-05 16:16:13 +0200 |
---|---|---|
committer | Kai Koehne <kai.koehne@qt.io> | 2020-10-09 14:17:27 +0200 |
commit | 4de97909b20ca86145c4e8f6d33f12f193ec218e (patch) | |
tree | 1371f37d00c4179b4be07ce2e082bebb39219baf /src/corelib/doc/snippets | |
parent | c2fde559761612c892d47b540a6ad19f96de7b75 (diff) |
CMake: Do not use versionless targets in examples (Qt Core)
This is confusing, especially because it's not used in the whole snippet.
Pick-to: 5.15
Change-Id: Ibd59646da2c77ac19a38441021c5e99f52015c95
Reviewed-by: Alexandru Croitor <alexandru.croitor@qt.io>
Diffstat (limited to 'src/corelib/doc/snippets')
-rw-r--r-- | src/corelib/doc/snippets/cmake-macros/examples.cmake | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/src/corelib/doc/snippets/cmake-macros/examples.cmake b/src/corelib/doc/snippets/cmake-macros/examples.cmake index 913b39cb4f..820b28cf88 100644 --- a/src/corelib/doc/snippets/cmake-macros/examples.cmake +++ b/src/corelib/doc/snippets/cmake-macros/examples.cmake @@ -65,10 +65,10 @@ qt5_import_plugins(myapp #! [qt_import_plugins] add_executable(myapp main.cpp) -target_link_libraries(myapp Qt::Gui Qt::Sql) +target_link_libraries(myapp Qt5::Gui Qt5::Sql) qt_import_plugins(myapp - INCLUDE Qt::QCocoaIntegrationPlugin - EXCLUDE Qt::QMinimalIntegrationPlugin + INCLUDE Qt5::QCocoaIntegrationPlugin + EXCLUDE Qt5::QMinimalIntegrationPlugin INCLUDE_BY_TYPE imageformats Qt5::QGifPlugin Qt5::QJpegPlugin EXCLUDE_BY_TYPE sqldrivers ) |