From 5efae5862f46cce079623a060fd9abd9b11091ef Mon Sep 17 00:00:00 2001 From: Alexey Edelev Date: Wed, 12 Apr 2023 15:04:14 +0200 Subject: 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: Icf3d63847085b11e2453978f0dc51b968847c5bb Reviewed-by: Amir Masoud Abdol --- CMakeLists.txt | 2 ++ 1 file changed, 2 insertions(+) (limited to 'CMakeLists.txt') diff --git a/CMakeLists.txt b/CMakeLists.txt index 684482d..97a9b9d 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -13,6 +13,8 @@ project(QtImageFormats find_package(Qt6 ${PROJECT_VERSION} CONFIG REQUIRED COMPONENTS BuildInternals Core) find_package(Qt6 ${PROJECT_VERSION} QUIET CONFIG OPTIONAL_COMPONENTS Gui) +qt_internal_project_setup() + if(NOT TARGET Qt::Gui) message(NOTICE "Skipping the build as the condition \"TARGET Qt::Gui\" is not met.") return() -- cgit v1.2.1