diff options
author | Kai Koehne <kai.koehne@qt.io> | 2020-06-17 14:13:38 +0200 |
---|---|---|
committer | Kai Koehne <kai.koehne@qt.io> | 2020-06-19 14:28:47 +0200 |
commit | 09f674fd1641482957571612632cbebbe7b03d5a (patch) | |
tree | 4cf1d0326571c40d2747fc3aec1bf862d17d66a1 | |
parent | f25bd998a7250bdd6c0cb1ee542757f20092f0a7 (diff) |
Fix CMake documentation snippet for QtNetwork
The addition of CMakeLists.txt in other directories made the reference
ambiguous. Also fix the Qt version.
Change-Id: I679d86a302ae6c41b84ded66e3f21c5320e4b325
Reviewed-by: Leena Miettinen <riitta-leena.miettinen@qt.io>
-rw-r--r-- | src/network/doc/snippets/CMakeLists.txt | 4 | ||||
-rw-r--r-- | src/network/doc/src/qtnetwork.qdoc | 4 |
2 files changed, 4 insertions, 4 deletions
diff --git a/src/network/doc/snippets/CMakeLists.txt b/src/network/doc/snippets/CMakeLists.txt index a8030dd260..0921774224 100644 --- a/src/network/doc/snippets/CMakeLists.txt +++ b/src/network/doc/snippets/CMakeLists.txt @@ -7,6 +7,6 @@ add_executable(mytarget ) # ![0] -find_package(Qt5 COMPONENTS Network REQUIRED) -target_link_libraries(mytarget Qt5::Network) +find_package(Qt6 COMPONENTS Network REQUIRED) +target_link_libraries(mytarget Qt::Network) # ![0] diff --git a/src/network/doc/src/qtnetwork.qdoc b/src/network/doc/src/qtnetwork.qdoc index 57b0210b7f..04e6efe730 100644 --- a/src/network/doc/src/qtnetwork.qdoc +++ b/src/network/doc/src/qtnetwork.qdoc @@ -35,7 +35,7 @@ are handled by various C++ classes. \include module-use.qdocinc using qt module - \snippet CMakeLists.txt 0 + \snippet doc/snippets/CMakeLists.txt 0 See also the \l{Build with CMake} overview. @@ -43,7 +43,7 @@ Add \c network to the \c QT variable: - \snippet snippets.pro 0 + \snippet doc/snippets/snippets.pro 0 \section1 Articles and Guides |