diff options
author | Kai Köhne <kai.koehne@qt.io> | 2022-05-11 13:08:43 +0200 |
---|---|---|
committer | Qt Cherry-pick Bot <cherrypick_bot@qt-project.org> | 2022-05-12 16:26:00 +0000 |
commit | 1541e295761f924c8adcf519e1242f7f49fa9a9f (patch) | |
tree | 8b927d374b01dc99730e0643ab2f1325f0da1e3c | |
parent | 7438e242a28d11d6c577d4e17bad2648ad90eb60 (diff) | |
download | qtserialport-1541e295761f924c8adcf519e1242f7f49fa9a9f.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
Change-Id: Ibbad0b969010c06469c12895f71ac57e627daa9e
Reviewed-by: Rui Oliveira
Reviewed-by: Jörg Bornemann <joerg.bornemann@qt.io>
(cherry picked from commit f853fe1967ef606d9e528765f4e0f7263fc65655)
Reviewed-by: Qt Cherry-pick Bot <cherrypick_bot@qt-project.org>
-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 47c5b24..98728ce 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] |