diff options
author | Alexey Edelev <alexey.edelev@qt.io> | 2023-04-12 15:04:15 +0200 |
---|---|---|
committer | Qt Cherry-pick Bot <cherrypick_bot@qt-project.org> | 2023-05-03 09:52:00 +0000 |
commit | 5ad9752fca4f5c05b871da28f03d7a40b0487b7f (patch) | |
tree | e464ff028056e805614460f3d968b503f9b52c3b | |
parent | 4c072f05449c3f4feb04224715b9878fa636091d (diff) |
Add the use of the qt_internal_project_setup function
The function sets the required CMake variables and policies.
Task-number: QTBUG-112685
Change-Id: I0f7b49bfd8a5b1c714c839c3cff2d7e2110f6d73
Reviewed-by: Joerg Bornemann <joerg.bornemann@qt.io>
(cherry picked from commit 91406ea1a67cb7051d8aa20165e3ef72f6e611a2)
Reviewed-by: Qt Cherry-pick Bot <cherrypick_bot@qt-project.org>
-rw-r--r-- | CMakeLists.txt | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/CMakeLists.txt b/CMakeLists.txt index a0ab22f..a594cea 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -18,6 +18,7 @@ set(QT_USE_FIXED_QT_ADD_RESOURCE_BASE TRUE) find_package(Qt6 ${PROJECT_VERSION} CONFIG REQUIRED COMPONENTS BuildInternals Core Network) # special case find_package(Qt6 ${PROJECT_VERSION} CONFIG OPTIONAL_COMPONENTS Quick QuickTest) # special case +qt_internal_project_setup() if(NOT TARGET Qt::Network) message(NOTICE "Skipping the build as the condition \"TARGET Qt::Network\" is not met.") |