From f853fe1967ef606d9e528765f4e0f7263fc65655 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Kai=20K=C3=B6hne?= Date: Wed, 11 May 2022 13:08:43 +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: Ibbad0b969010c06469c12895f71ac57e627daa9e Reviewed-by: Rui Oliveira Reviewed-by: Jörg Bornemann --- src/serialport/doc/src/qtserialport-module-use.qdocinc | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/serialport/doc/src/qtserialport-module-use.qdocinc b/src/serialport/doc/src/qtserialport-module-use.qdocinc index 47c5b24b..98728ce4 100644 --- a/src/serialport/doc/src/qtserialport-module-use.qdocinc +++ b/src/serialport/doc/src/qtserialport-module-use.qdocinc @@ -27,7 +27,7 @@ //! [cmakebuild] \code - find_package(Qt6 COMPONENTS SerialPort REQUIRED) + find_package(Qt6 REQUIRED COMPONENTS SerialPort) target_link_libraries(mytarget PRIVATE Qt6::SerialPort) \endcode //! [cmakebuild] -- cgit v1.2.3