From f3c10280f59d35fbf0862e6e353602e7aa8ef901 Mon Sep 17 00:00:00 2001 From: Alexey Edelev Date: Wed, 12 Apr 2023 15:04:14 +0200 Subject: Introduce the qt_internal_project_setup macro The macro sets the required CMake variables and policies and should be called right after the find_package(Qt6 COMPONENTS BuildInternals... call to make sure that the subsequent code adopt all the required policies. Pick-to: 6.5 Task-number: QTBUG-112685 Change-Id: I9f93f728ee4d8ae7743db9fffafa26025c76dcf2 Reviewed-by: Alexandru Croitor --- tests/auto/cmake/mockplugins/CMakeLists.txt | 2 ++ 1 file changed, 2 insertions(+) (limited to 'tests/auto/cmake/mockplugins/CMakeLists.txt') diff --git a/tests/auto/cmake/mockplugins/CMakeLists.txt b/tests/auto/cmake/mockplugins/CMakeLists.txt index 0711631dec..dd246ed0ff 100644 --- a/tests/auto/cmake/mockplugins/CMakeLists.txt +++ b/tests/auto/cmake/mockplugins/CMakeLists.txt @@ -12,6 +12,8 @@ project(QtMockPlugins ) find_package(Qt6 ${PROJECT_VERSION} CONFIG REQUIRED COMPONENTS BuildInternals Core) +qt_internal_project_setup() + find_package(Qt6 ${PROJECT_VERSION} QUIET CONFIG OPTIONAL_COMPONENTS Gui Widgets Xml) qt_build_repo_begin() -- cgit v1.2.3