aboutsummaryrefslogtreecommitdiffstats
path: root/examples/quickcontrols/attachedstyleproperties/MyStyle
diff options
context:
space:
mode:
authorKai Köhne <[email protected]>2023-04-28 13:21:38 +0200
committerKai Köhne <[email protected]>2023-05-02 12:12:35 +0200
commit2e6403f8bf950cf3e4802319e41ac1ae368c0586 (patch)
tree732b271752f4b5840c4e485bb1dc9521542b4421 /examples/quickcontrols/attachedstyleproperties/MyStyle
parent8db22d191f6d153cfe950697e89f535062410b83 (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 <[email protected]> Reviewed-by: Qt CI Bot <[email protected]>
Diffstat (limited to 'examples/quickcontrols/attachedstyleproperties/MyStyle')
-rw-r--r--examples/quickcontrols/attachedstyleproperties/MyStyle/CMakeLists.txt8
1 files changed, 4 insertions, 4 deletions
diff --git a/examples/quickcontrols/attachedstyleproperties/MyStyle/CMakeLists.txt b/examples/quickcontrols/attachedstyleproperties/MyStyle/CMakeLists.txt
index 9cb00a81e7..f57aacdd41 100644
--- a/examples/quickcontrols/attachedstyleproperties/MyStyle/CMakeLists.txt
+++ b/examples/quickcontrols/attachedstyleproperties/MyStyle/CMakeLists.txt
@@ -28,10 +28,10 @@ generate_export_header(MyStyle)
find_package(Qt6 REQUIRED COMPONENTS Core Gui Qml QuickControls2)
target_link_libraries(MyStyle PRIVATE
- Qt::Core
- Qt::Gui
- Qt::Qml
- Qt::QuickControls2
+ Qt6::Core
+ Qt6::Gui
+ Qt6::Qml
+ Qt6::QuickControls2
)
install(TARGETS MyStyle