summaryrefslogtreecommitdiffstats
path: root/src/sql/doc/snippets
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/sql/doc/snippets
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/sql/doc/snippets')
-rw-r--r--src/sql/doc/snippets/CMakeLists.txt2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/sql/doc/snippets/CMakeLists.txt b/src/sql/doc/snippets/CMakeLists.txt
index 2e74eed35a..f696eec076 100644
--- a/src/sql/doc/snippets/CMakeLists.txt
+++ b/src/sql/doc/snippets/CMakeLists.txt
@@ -1,4 +1,4 @@
#! [cmake_use]
-find_package(Qt6 COMPONENTS Sql REQUIRED)
+find_package(Qt6 REQUIRED COMPONENTS Sql)
target_link_libraries(mytarget PRIVATE Qt6::Sql)
#! [cmake_use]