FindOpenGL: Fix confusing output with CMP0072 and OpenGL preference

If the legacy `GL` library is found, report that instead of GLVND's
`OpenGL` in the "found" message.
This commit is contained in:
Colton G. Rushton
2022-08-23 09:28:16 -04:00
committed by Brad King
parent 5936d4f2ad
commit 3a3ecef473
+1 -1
View File
@@ -377,7 +377,7 @@ else()
(NOT OPENGL_USE_EGL AND
NOT OPENGL_glx_LIBRARY AND
OPENGL_gl_LIBRARY))
list(APPEND _OpenGL_REQUIRED_VARS OPENGL_gl_LIBRARY)
list(PREPEND _OpenGL_REQUIRED_VARS OPENGL_gl_LIBRARY)
endif()
# We always need the 'gl.h' include dir.