summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorAlexey Edelev <alexey.edelev@qt.io>2023-04-12 15:04:14 +0200
committerQt Cherry-pick Bot <cherrypick_bot@qt-project.org>2023-05-09 16:27:18 +0000
commitbdc9ea5adce32708e5234a37645e602f0d46eec3 (patch)
tree11aab8aeeb86cf7ece5b024c8567c2e4c93fb796
parentad36aef608a4e2ed8c7f8dada9d2b4729fc7eb81 (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: I49df26cc6b60e28d855206ee04434cfee8b10e56 Reviewed-by: Amir Masoud Abdol <amir.abdol@qt.io> (cherry picked from commit 699cd3dd3421b0e348d2e995204d6a289ff7ba66) Reviewed-by: Qt Cherry-pick Bot <cherrypick_bot@qt-project.org>
-rw-r--r--CMakeLists.txt1
1 files changed, 1 insertions, 0 deletions
diff --git a/CMakeLists.txt b/CMakeLists.txt
index 372f653..973330a 100644
--- a/CMakeLists.txt
+++ b/CMakeLists.txt
@@ -13,6 +13,7 @@ project(QtOpcUa
find_package(Qt6 ${PROJECT_VERSION} CONFIG REQUIRED COMPONENTS BuildInternals Core Network)
find_package(Qt6 ${PROJECT_VERSION} CONFIG OPTIONAL_COMPONENTS Gui Quick QuickTest Widgets)
+qt_internal_project_setup()
# Needed for qt_opcua_disable_optimizations_in_current_dir.
include(src/opcua/Qt6OpcUaMacros.cmake)