summaryrefslogtreecommitdiffstats
path: root/src/testlib/doc/snippets/CMakeLists.txt
diff options
context:
space:
mode:
authorKai Köhne <kai.koehne@qt.io>2021-11-29 16:41:58 +0100
committerKai Köhne <kai.koehne@qt.io>2021-12-09 22:20:04 +0100
commitb34be3868bd0933813f02c6a0fcbb5afd18b4105 (patch)
tree1e0ed8c29706d468c66178effb908349e1fb0e68 /src/testlib/doc/snippets/CMakeLists.txt
parent7586e1980f6b539047d3a4c70e57560c04d2a7ae (diff)
Doc: Use find_package(Qt6 REQUIRED COMPONENTS ...) idiom
Using REQUIRED as a prefix instead of suffix works better with OPTIONAL_COMPONENTS, and is also the order in the CMake manual. Task-number: QTBUG-98867 Pick-to: 6.2 Change-Id: I1ab68408b95d8edf06272a3b9fceccd8d8e597fc Reviewed-by: Alexey Edelev <alexey.edelev@qt.io>
Diffstat (limited to 'src/testlib/doc/snippets/CMakeLists.txt')
-rw-r--r--src/testlib/doc/snippets/CMakeLists.txt2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/testlib/doc/snippets/CMakeLists.txt b/src/testlib/doc/snippets/CMakeLists.txt
index 1dac3c91aa..09d54fd56e 100644
--- a/src/testlib/doc/snippets/CMakeLists.txt
+++ b/src/testlib/doc/snippets/CMakeLists.txt
@@ -1,4 +1,4 @@
#! [cmake_use]
-find_package(Qt6 COMPONENTS Test REQUIRED)
+find_package(Qt6 REQUIRED COMPONENTS Test)
target_link_libraries(mytarget PRIVATE Qt6::Test)
#! [cmake_use]