mirror of
https://github.com/Kitware/CMake.git
synced 2026-04-21 05:38:24 -05:00
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:
committed by
Brad King
parent
5936d4f2ad
commit
3a3ecef473
@@ -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.
|
||||
|
||||
Reference in New Issue
Block a user