summaryrefslogtreecommitdiffstats
path: root/Modules
diff options
context:
space:
mode:
authorColton G. Rushton <colton51919@gmail.com>2022-08-23 13:28:16 (GMT)
committerBrad King <brad.king@kitware.com>2022-08-30 17:59:48 (GMT)
commit3a3ecef4731f6e1865c7f372874b9115c5370b72 (patch)
treee0b8696dac2260ba2c5484ebafa06255ac882da6 /Modules
parent5936d4f2adeec64e0ff748b2c6c34f0436b19a97 (diff)
downloadCMake-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.cmake2
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.