From b554c0f43d6a256d84e08afd2dbd27df115221c9 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Kai=20K=C3=B6hne?= Date: Wed, 11 May 2022 13:10:26 +0200 Subject: Doc: Use find_package(Qt6 REQUIRED COMPONENTS ...) idiom MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit 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 --- src/sensors/doc/qtsensors-module-use.qdocinc | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src') 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] -- cgit v1.2.1