summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorKai Köhne <kai.koehne@qt.io>2022-05-11 13:12:36 +0200
committerQt Cherry-pick Bot <cherrypick_bot@qt-project.org>2022-05-13 07:11:16 +0000
commit10c1f3429275fad43631f7b26dcea3498ab0af18 (patch)
tree8605ec4de49d1264cb6496796a3e306c6df16dc5
parent506591290e6c6deca39fe56cc768251b7c181e5d (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 Change-Id: I02034035f8c67a1e55a826898231409c07ebd6bf Reviewed-by: Rui Oliveira Reviewed-by: Jörg Bornemann <joerg.bornemann@qt.io> (cherry picked from commit 6843593ff41a90941c7ffd50db028c155d6e3418) Reviewed-by: Qt Cherry-pick Bot <cherrypick_bot@qt-project.org>
-rw-r--r--src/remoteobjects/doc/snippets/cmake-macros/CMakeLists.txt2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/remoteobjects/doc/snippets/cmake-macros/CMakeLists.txt b/src/remoteobjects/doc/snippets/cmake-macros/CMakeLists.txt
index 006e2f7..f43125c 100644
--- a/src/remoteobjects/doc/snippets/cmake-macros/CMakeLists.txt
+++ b/src/remoteobjects/doc/snippets/cmake-macros/CMakeLists.txt
@@ -11,7 +11,7 @@ if(CMAKE_VERSION VERSION_LESS "3.7.0")
endif()
#! [remote_objects_cmake]
-find_package(Qt6 COMPONENTS RemoteObjects REQUIRED)
+find_package(Qt6 REQUIRED COMPONENTS RemoteObjects)
#! [remote_objects_cmake]
set(SOURCES