diff options
author | Kai Köhne <kai.koehne@qt.io> | 2021-11-29 16:41:58 +0100 |
---|---|---|
committer | Kai Köhne <kai.koehne@qt.io> | 2021-12-09 22:20:04 +0100 |
commit | b34be3868bd0933813f02c6a0fcbb5afd18b4105 (patch) | |
tree | 1e0ed8c29706d468c66178effb908349e1fb0e68 /src/dbus/doc | |
parent | 7586e1980f6b539047d3a4c70e57560c04d2a7ae (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.2
Change-Id: I1ab68408b95d8edf06272a3b9fceccd8d8e597fc
Reviewed-by: Alexey Edelev <alexey.edelev@qt.io>
Diffstat (limited to 'src/dbus/doc')
-rw-r--r-- | src/dbus/doc/snippets/CMakeLists.txt | 2 | ||||
-rw-r--r-- | src/dbus/doc/src/includes/cmake-find-package-dbus.qdocinc | 2 | ||||
-rw-r--r-- | src/dbus/doc/src/qtdbus-cmake.qdoc | 2 |
3 files changed, 3 insertions, 3 deletions
diff --git a/src/dbus/doc/snippets/CMakeLists.txt b/src/dbus/doc/snippets/CMakeLists.txt index 825a088019..516a3cd67c 100644 --- a/src/dbus/doc/snippets/CMakeLists.txt +++ b/src/dbus/doc/snippets/CMakeLists.txt @@ -1,4 +1,4 @@ #! [cmake_use] -find_package(Qt6 COMPONENTS DBus REQUIRED) +find_package(Qt6 REQUIRED COMPONENTS DBus) target_link_libraries(mytarget PRIVATE Qt6::DBus) #! [cmake_use] diff --git a/src/dbus/doc/src/includes/cmake-find-package-dbus.qdocinc b/src/dbus/doc/src/includes/cmake-find-package-dbus.qdocinc index d72102831e..1ed1c6a8ec 100644 --- a/src/dbus/doc/src/includes/cmake-find-package-dbus.qdocinc +++ b/src/dbus/doc/src/includes/cmake-find-package-dbus.qdocinc @@ -1,5 +1,5 @@ The command is defined in the \c DBus component of the \c Qt6 package. Load the package with: \code -find_package(Qt6 COMPONENTS DBus REQUIRED) +find_package(Qt6 REQUIRED COMPONENTS DBus) \endcode diff --git a/src/dbus/doc/src/qtdbus-cmake.qdoc b/src/dbus/doc/src/qtdbus-cmake.qdoc index 92b0e700ff..c35543c113 100644 --- a/src/dbus/doc/src/qtdbus-cmake.qdoc +++ b/src/dbus/doc/src/qtdbus-cmake.qdoc @@ -33,7 +33,7 @@ The following CMake commands are defined when Qt6::DBus is loaded, for instance with \code -find_package(Qt6 COMPONENTS DBus REQUIRED) +find_package(Qt6 REQUIRED COMPONENTS DBus) \endcode \sa{CMake Command Reference} |