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/xml | |
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/xml')
-rw-r--r-- | src/xml/doc/snippets/CMakeLists.txt | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/xml/doc/snippets/CMakeLists.txt b/src/xml/doc/snippets/CMakeLists.txt index 134f6c2589..9a51f6fcb7 100644 --- a/src/xml/doc/snippets/CMakeLists.txt +++ b/src/xml/doc/snippets/CMakeLists.txt @@ -1,4 +1,4 @@ #! [cmake_use] -find_package(Qt6 COMPONENTS Xml REQUIRED) +find_package(Qt6 REQUIRED COMPONENTS Xml) target_link_libraries(mytarget PRIVATE Qt6::Xml) #! [cmake_use] |