diff options
author | Kai Köhne <kai.koehne@qt.io> | 2022-05-11 13:08:43 +0200 |
---|---|---|
committer | Kai Köhne <kai.koehne@qt.io> | 2022-05-12 17:41:21 +0200 |
commit | f853fe1967ef606d9e528765f4e0f7263fc65655 (patch) | |
tree | 7f3f4b5718741466e9fd282614ac169466546ffb | |
parent | 9bc9c2a48dd197ebe9e0500b9ebdc239621549f1 (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.3
Change-Id: Ibbad0b969010c06469c12895f71ac57e627daa9e
Reviewed-by: Rui Oliveira
Reviewed-by: Jörg Bornemann <joerg.bornemann@qt.io>
-rw-r--r-- | src/serialport/doc/src/qtserialport-module-use.qdocinc | 2 |
1 files changed, 1 insertions, 1 deletions
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] |