diff options
author | Kai Köhne <kai.koehne@qt.io> | 2022-11-14 14:49:32 +0100 |
---|---|---|
committer | Kai Köhne <kai.koehne@qt.io> | 2022-11-17 19:59:11 +0100 |
commit | bec264c15fe07382009def3c4bbef3f3b689b6eb (patch) | |
tree | 2335b779fc09463522ff5356cd2c152ff64d603f /examples/network/CMakeLists.txt | |
parent | 9e251d44a79e171f093e89b21215d7372866ef4c (diff) |
Examples: Use Qt6:: to qualify Qt CMake packages
This is what we promote also in the documentation.
Change-Id: If91aebafe861b0c934acbb2c69afd182abc3345d
Reviewed-by: Jörg Bornemann <joerg.bornemann@qt.io>
Diffstat (limited to 'examples/network/CMakeLists.txt')
-rw-r--r-- | examples/network/CMakeLists.txt | 12 |
1 files changed, 6 insertions, 6 deletions
diff --git a/examples/network/CMakeLists.txt b/examples/network/CMakeLists.txt index 4dc0568c79..59a97cca89 100644 --- a/examples/network/CMakeLists.txt +++ b/examples/network/CMakeLists.txt @@ -1,7 +1,7 @@ # Copyright (C) 2022 The Qt Company Ltd. # SPDX-License-Identifier: BSD-3-Clause -if(NOT TARGET Qt::Network) +if(NOT TARGET Qt6::Network) return() endif() qt_internal_add_example(download) @@ -9,7 +9,7 @@ qt_internal_add_example(downloadmanager) if(NOT INTEGRITY) qt_internal_add_example(dnslookup) endif() -if(TARGET Qt::Widgets) +if(TARGET Qt6::Widgets) qt_internal_add_example(blockingfortuneclient) qt_internal_add_example(broadcastreceiver) qt_internal_add_example(broadcastsender) @@ -23,17 +23,17 @@ if(TARGET Qt::Widgets) qt_internal_add_example(fortuneclient) qt_internal_add_example(fortuneserver) endif() -if(QT_FEATURE_processenvironment AND TARGET Qt::Widgets) +if(QT_FEATURE_processenvironment AND TARGET Qt6::Widgets) qt_internal_add_example(network-chat) endif() -if(QT_FEATURE_ssl AND TARGET Qt::Widgets) +if(QT_FEATURE_ssl AND TARGET Qt6::Widgets) qt_internal_add_example(securesocketclient) endif() -if(QT_FEATURE_dtls AND TARGET Qt::Widgets) +if(QT_FEATURE_dtls AND TARGET Qt6::Widgets) qt_internal_add_example(secureudpserver) qt_internal_add_example(secureudpclient) endif() -if(QT_FEATURE_sctp AND TARGET Qt::Widgets) +if(QT_FEATURE_sctp AND TARGET Qt6::Widgets) qt_internal_add_example(multistreamserver) qt_internal_add_example(multistreamclient) endif() |