summaryrefslogtreecommitdiffstats
path: root/src/testlib/doc
diff options
context:
space:
mode:
Diffstat (limited to 'src/testlib/doc')
-rw-r--r--src/testlib/doc/snippets/CMakeLists.txt2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/testlib/doc/snippets/CMakeLists.txt b/src/testlib/doc/snippets/CMakeLists.txt
index c8ba7cc47a..1dac3c91aa 100644
--- a/src/testlib/doc/snippets/CMakeLists.txt
+++ b/src/testlib/doc/snippets/CMakeLists.txt
@@ -1,4 +1,4 @@
#! [cmake_use]
find_package(Qt6 COMPONENTS Test REQUIRED)
-target_link_libraries(mytarget Qt6::Test)
+target_link_libraries(mytarget PRIVATE Qt6::Test)
#! [cmake_use]