diff options
author | Kai Köhne <kai.koehne@qt.io> | 2021-12-03 17:00:08 +0100 |
---|---|---|
committer | Kai Koehne <kai.koehne@qt.io> | 2021-12-13 14:16:26 +0000 |
commit | 9ca7429dff4b5d46114ca36147f65b61d5e61290 (patch) | |
tree | 34964d245e4b42240bee2a9a49c5965087b372e2 /tests/manual/highdpi/screengadget/CMakeLists.txt | |
parent | 28a9d116bba00fde5aaa214bb7c929efc66af971 (diff) |
Tests: Use REQUIRED COMPONENTS in find_package(Qt6...)
Make sure configure fails early if a component cannot be found.
Task-number: QTBUG-98867
Pick-to: 6.2 6.3
Change-Id: I4baa35a84342df58ce8932601fb602be92ed5ab9
Reviewed-by: Alexandru Croitor <alexandru.croitor@qt.io>
Diffstat (limited to 'tests/manual/highdpi/screengadget/CMakeLists.txt')
-rw-r--r-- | tests/manual/highdpi/screengadget/CMakeLists.txt | 4 |
1 files changed, 1 insertions, 3 deletions
diff --git a/tests/manual/highdpi/screengadget/CMakeLists.txt b/tests/manual/highdpi/screengadget/CMakeLists.txt index 97442e50a4..0b3c3dbc30 100644 --- a/tests/manual/highdpi/screengadget/CMakeLists.txt +++ b/tests/manual/highdpi/screengadget/CMakeLists.txt @@ -3,9 +3,7 @@ cmake_minimum_required(VERSION 3.16) project(screengadget LANGUAGES CXX) set(CMAKE_AUTOMOC ON) -find_package(Qt6 COMPONENTS Core) -find_package(Qt6 COMPONENTS Gui) -find_package(Qt6 COMPONENTS Widgets) +find_package(Qt6 REQUIRED COMPONENTS Core Gui Widgets) qt_add_executable(screengadget main.cpp |