Skip to content
Snippets Groups Projects
Commit b4c99aac authored by siavashserver's avatar siavashserver Committed by Camilla Löwy
Browse files

Fix OpenGL header inclusion guide

Closes #1233.
parent 30f5f973
No related branches found
No related tags found
No related merge requests found
...@@ -226,7 +226,7 @@ If OpenGL is found, the `OPENGL_FOUND` variable is true and the ...@@ -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. `OPENGL_INCLUDE_DIR` and `OPENGL_gl_LIBRARY` cache variables can be used.
@code{.cmake} @code{.cmake}
target_include_directories(myapp ${OPENGL_INCLUDE_DIR}) target_include_directories(myapp PUBLIC ${OPENGL_INCLUDE_DIR})
target_link_libraries(myapp ${OPENGL_gl_LIBRARY}) target_link_libraries(myapp ${OPENGL_gl_LIBRARY})
@endcode @endcode
...@@ -279,7 +279,7 @@ If OpenGL is found, the `OPENGL_FOUND` variable is true and the ...@@ -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. `OPENGL_INCLUDE_DIR` and `OPENGL_gl_LIBRARY` cache variables can be used.
@code{.cmake} @code{.cmake}
target_include_directories(myapp ${OPENGL_INCLUDE_DIR}) target_include_directories(myapp PUBLIC ${OPENGL_INCLUDE_DIR})
target_link_libraries(myapp ${OPENGL_gl_LIBRARY}) target_link_libraries(myapp ${OPENGL_gl_LIBRARY})
@endcode @endcode
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment