summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorKai Köhne <kai.koehne@qt.io>2022-05-11 13:10:26 +0200
committerKai Köhne <kai.koehne@qt.io>2022-05-13 08:31:53 +0200
commitb554c0f43d6a256d84e08afd2dbd27df115221c9 (patch)
treedf2f0fec79fe4d5675f5432ab102b02ae4e9c8be
parentd2c4bdfaa5932c72f17b3d43b4c56bd997790fa7 (diff)
downloadqtsensors-b554c0f43d6a256d84e08afd2dbd27df115221c9.tar.gz
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.3 Change-Id: Id2f92da5ca8319d6e8b6d1b30010199a77c16990 Reviewed-by: Rui Oliveira Reviewed-by: Jörg Bornemann <joerg.bornemann@qt.io>
-rw-r--r--src/sensors/doc/qtsensors-module-use.qdocinc2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/sensors/doc/qtsensors-module-use.qdocinc b/src/sensors/doc/qtsensors-module-use.qdocinc
index 4ea4db9..41b74df 100644
--- a/src/sensors/doc/qtsensors-module-use.qdocinc
+++ b/src/sensors/doc/qtsensors-module-use.qdocinc
@@ -27,7 +27,7 @@
//! [cmakebuild]
\code
- find_package(Qt6 COMPONENTS Sensors REQUIRED)
+ find_package(Qt6 REQUIRED COMPONENTS Sensors)
target_link_libraries(mytarget PRIVATE Qt6::Sensors)
\endcode
//! [cmakebuild]