From b8bfa5352d0c987f67e4ceba8b45a92551580afc Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Kai=20K=C3=B6hne?= Date: Wed, 11 May 2022 13:06:38 +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. Pick-to: 6.3 Task-number: QTBUG-98867 Change-Id: I57928fb56e2a154d91873dc869f6d314a7ea5fce Reviewed-by: Rui Oliveira Reviewed-by: Jörg Bornemann --- src/webenginequick/doc/snippets/qtwebengine_build_snippet.qdoc | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src/webenginequick/doc/snippets/qtwebengine_build_snippet.qdoc') diff --git a/src/webenginequick/doc/snippets/qtwebengine_build_snippet.qdoc b/src/webenginequick/doc/snippets/qtwebengine_build_snippet.qdoc index b21efbdf9..ac3526540 100644 --- a/src/webenginequick/doc/snippets/qtwebengine_build_snippet.qdoc +++ b/src/webenginequick/doc/snippets/qtwebengine_build_snippet.qdoc @@ -35,6 +35,6 @@ QT += webenginequick //! [1] //! [2] -find_package(Qt6 COMPONENTS WebEngineQuick REQUIRED) +find_package(Qt6 REQUIRED COMPONENTS WebEngineQuick) target_link_libraries(target PRIVATE Qt::WebEngineQuick) //! [2] -- cgit v1.2.1