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-02 12:12:35 +0200 |
commit | 2e6403f8bf950cf3e4802319e41ac1ae368c0586 (patch) | |
tree | 732b271752f4b5840c4e485bb1dc9521542b4421 /examples/quick/shapes | |
parent | 8db22d191f6d153cfe950697e89f535062410b83 (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.
Pick-to: 6.5
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>
Diffstat (limited to 'examples/quick/shapes')
-rw-r--r-- | examples/quick/shapes/CMakeLists.txt | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/examples/quick/shapes/CMakeLists.txt b/examples/quick/shapes/CMakeLists.txt index 37ed8aa561..db80983dca 100644 --- a/examples/quick/shapes/CMakeLists.txt +++ b/examples/quick/shapes/CMakeLists.txt @@ -23,10 +23,10 @@ qt_add_executable(shapesexample ) target_link_libraries(shapesexample PRIVATE - Qt::Core - Qt::Gui - Qt::Qml - Qt::Quick + Qt6::Core + Qt6::Gui + Qt6::Qml + Qt6::Quick ) add_dependencies(shapesexample shapes_shared) |