FindOpenGL: Clarify cache entry doc strings on macOS

This commit is contained in:
Randolph M. Fritz authored and Brad King committed 2023-12-11 10:20:59 -05:00
1 parent 2040b79a39
commit a13f62427b
1 file changed
+8 -5
+8 -5
View File
@@ -207,11 +207,14 @@ if (WIN32)
OPENGL_glu_LIBRARY
)
elseif (APPLE)
# The OpenGL.framework provides both gl and glu
find_library(OPENGL_gl_LIBRARY OpenGL DOC "OpenGL library for OS X")
find_library(OPENGL_glu_LIBRARY OpenGL DOC
"GLU library for OS X (usually same as OpenGL library)")
find_path(OPENGL_INCLUDE_DIR OpenGL/gl.h DOC "Include for OpenGL on OS X")
# The OpenGL.framework provides both gl and glu in OpenGL
# XQuartz provides libgl and libglu
find_library(OPENGL_gl_LIBRARY NAMES OpenGL GL DOC
"OpenGL GL library")
find_library(OPENGL_glu_LIBRARY NAMES OpenGL GLU DOC
"OpenGL GLU library")
find_path(OPENGL_INCLUDE_DIR NAMES OpenGL/gl.h GL/gl.h DOC
"Include for OpenGL")
list(APPEND _OpenGL_REQUIRED_VARS OPENGL_INCLUDE_DIR)
list(APPEND _OpenGL_CACHE_VARS