From b4c99aacd46fb472b9e9c604fff245ffb21af11d Mon Sep 17 00:00:00 2001 From: siavashserver Date: Sat, 17 Mar 2018 14:31:44 +0330 Subject: [PATCH] Fix OpenGL header inclusion guide Closes #1233. --- docs/build.dox | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/docs/build.dox b/docs/build.dox index 18ce13ce..6304d425 100644 --- a/docs/build.dox +++ b/docs/build.dox @@ -226,7 +226,7 @@ If OpenGL is found, the `OPENGL_FOUND` variable is true and the `OPENGL_INCLUDE_DIR` and `OPENGL_gl_LIBRARY` cache variables can be used. @code{.cmake} -target_include_directories(myapp ${OPENGL_INCLUDE_DIR}) +target_include_directories(myapp PUBLIC ${OPENGL_INCLUDE_DIR}) target_link_libraries(myapp ${OPENGL_gl_LIBRARY}) @endcode @@ -279,7 +279,7 @@ If OpenGL is found, the `OPENGL_FOUND` variable is true and the `OPENGL_INCLUDE_DIR` and `OPENGL_gl_LIBRARY` cache variables can be used. @code{.cmake} -target_include_directories(myapp ${OPENGL_INCLUDE_DIR}) +target_include_directories(myapp PUBLIC ${OPENGL_INCLUDE_DIR}) target_link_libraries(myapp ${OPENGL_gl_LIBRARY}) @endcode