mirror of
https://gitlab.kitware.com/cmake/cmake.git
synced 2026-10-03 04:03:23 +03: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:
1 parent
5936d4f2ad
commit
3a3ecef473
1 file changed
+1
-1
@@ -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