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