diff options
author | Colton G. Rushton <colton51919@gmail.com> | 2022-08-23 13:28:16 (GMT) |
---|---|---|
committer | Brad King <brad.king@kitware.com> | 2022-08-30 17:59:48 (GMT) |
commit | 3a3ecef4731f6e1865c7f372874b9115c5370b72 (patch) | |
tree | e0b8696dac2260ba2c5484ebafa06255ac882da6 /Modules | |
parent | 5936d4f2adeec64e0ff748b2c6c34f0436b19a97 (diff) | |
download | CMake-3a3ecef4731f6e1865c7f372874b9115c5370b72.zip CMake-3a3ecef4731f6e1865c7f372874b9115c5370b72.tar.gz CMake-3a3ecef4731f6e1865c7f372874b9115c5370b72.tar.bz2 |
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.
Diffstat (limited to 'Modules')
-rw-r--r-- | Modules/FindOpenGL.cmake | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/Modules/FindOpenGL.cmake b/Modules/FindOpenGL.cmake index d6d1c00..a9a1b2a 100644 --- a/Modules/FindOpenGL.cmake +++ b/Modules/FindOpenGL.cmake @@ -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. |