summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAlexey Edelev <alexey.edelev@qt.io>2023-04-12 15:04:14 +0200
committerAlexey Edelev <alexey.edelev@qt.io>2023-05-09 11:14:29 +0200
commit17febb23a3b21fd6ab9b65fd6990096d6b1c30b7 (patch)
treef1adc5cb6e8f56b230dde93fe401e6a6f310dc40
parent5c6b60d4051c683a02082b5da49f47fe6096b347 (diff)
downloadqtconnectivity-17febb23a3b21fd6ab9b65fd6990096d6b1c30b7.tar.gz
Add the use of the qt_internal_project_setup function
The function sets the required CMake variables and policies. Pick-to: 6.5 Task-number: QTBUG-112685 Change-Id: Ibedbc926750b84fa69bbd1406a91f3349331c1da Reviewed-by: Amir Masoud Abdol <amir.abdol@qt.io>
-rw-r--r--CMakeLists.txt1
1 files changed, 1 insertions, 0 deletions
diff --git a/CMakeLists.txt b/CMakeLists.txt
index f5db4b62..e7fd0c29 100644
--- a/CMakeLists.txt
+++ b/CMakeLists.txt
@@ -15,6 +15,7 @@ set(QT_REPO_NOT_WARNINGS_CLEAN TRUE)
find_package(Qt6 ${PROJECT_VERSION} CONFIG REQUIRED COMPONENTS BuildInternals Core Network)
find_package(Qt6 ${PROJECT_VERSION} CONFIG OPTIONAL_COMPONENTS
DBus Gui Widgets Quick QuickControls2)
+qt_internal_project_setup()
if(NOT TARGET Qt::Network)
message(NOTICE "Skipping the build as the condition \"TARGET Qt::Network\" is not met.")