diff options
author | Kai Köhne <kai.koehne@qt.io> | 2023-04-28 13:21:38 +0200 |
---|---|---|
committer | Kai Köhne <kai.koehne@qt.io> | 2023-05-03 12:32:40 +0200 |
commit | 222a5601a970cca20c45b043ad86d684ef3f01c1 (patch) | |
tree | 0c5dadd328f27cbdd15945a5d328c1e80f962508 /examples/quick/threading/CMakeLists.txt | |
parent | 76372d0d0b84a1f594082ad4b27154ee2a314d76 (diff) |
Examples: Use versioned CMake targets for Qt modules
Use e.g. Qt6::Core instead of Qt::Core. This is better matching the
find_package(Qt6 ...) call, and also avoids issues that the versionless
targets have.
Task-number: QTBUG-113277
Change-Id: Ib80f885e9f73fb9ad54b9e9b22cae2318877dc07
Reviewed-by: Alexey Edelev <alexey.edelev@qt.io>
Reviewed-by: Qt CI Bot <qt_ci_bot@qt-project.org>
(cherry picked from commit 2e6403f8bf950cf3e4802319e41ac1ae368c0586)
Diffstat (limited to 'examples/quick/threading/CMakeLists.txt')
-rw-r--r-- | examples/quick/threading/CMakeLists.txt | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/examples/quick/threading/CMakeLists.txt b/examples/quick/threading/CMakeLists.txt index aaa1731f0d..d23a5191a8 100644 --- a/examples/quick/threading/CMakeLists.txt +++ b/examples/quick/threading/CMakeLists.txt @@ -23,10 +23,10 @@ qt_add_executable(threadingexample ) target_link_libraries(threadingexample PRIVATE - Qt::Core - Qt::Gui - Qt::Qml - Qt::Quick + Qt6::Core + Qt6::Gui + Qt6::Qml + Qt6::Quick ) add_dependencies(threadingexample threading_shared) |