summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorKai Köhne <kai.koehne@qt.io>2022-05-11 13:10:26 +0200
committerQt Cherry-pick Bot <cherrypick_bot@qt-project.org>2022-05-13 07:31:59 +0000
commit12e5e49c669b2a1bc420f2a258883c12cd61b380 (patch)
treef51e3c71ce1a623fa08a75cd1799891187d92b84
parentb3feee4ac1e9b7e477cc7244749b4d56c19841de (diff)
Doc: Use find_package(Qt6 REQUIRED COMPONENTS ...) idiom6.3
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 Change-Id: Id2f92da5ca8319d6e8b6d1b30010199a77c16990 Reviewed-by: Rui Oliveira Reviewed-by: Jörg Bornemann <joerg.bornemann@qt.io> (cherry picked from commit b554c0f43d6a256d84e08afd2dbd27df115221c9) Reviewed-by: Qt Cherry-pick Bot <cherrypick_bot@qt-project.org>
-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 4ea4db91..41b74df1 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]