diff options
author | Brad King <brad.king@kitware.com> | 2017-11-07 12:57:09 (GMT) |
---|---|---|
committer | Brad King <brad.king@kitware.com> | 2017-11-07 14:33:43 (GMT) |
commit | f44fb2dd4ce5e47cd0a12d1a25bda40f012d453a (patch) | |
tree | ce954f50d1f7ac30ce20baec874d591b8e13f0a4 /Modules/FindOpenGL.cmake | |
parent | a91eb5e41f486628910f189bf40403568af013c7 (diff) | |
download | CMake-f44fb2dd4ce5e47cd0a12d1a25bda40f012d453a.zip CMake-f44fb2dd4ce5e47cd0a12d1a25bda40f012d453a.tar.gz CMake-f44fb2dd4ce5e47cd0a12d1a25bda40f012d453a.tar.bz2 |
FindOpenGL: Clarify logic constructing OPENGL_LIBRARIES
Our comment says the logic matches that for OpenGL::GL. Structure
the logic the same way to make this clearer.
Issue: #17437
Diffstat (limited to 'Modules/FindOpenGL.cmake')
-rw-r--r-- | Modules/FindOpenGL.cmake | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/Modules/FindOpenGL.cmake b/Modules/FindOpenGL.cmake index 59bee41..8cceabd 100644 --- a/Modules/FindOpenGL.cmake +++ b/Modules/FindOpenGL.cmake @@ -440,9 +440,10 @@ if(OPENGL_FOUND) endif() # OPENGL_LIBRARIES mirrors OpenGL::GL's logic ... - set(OPENGL_LIBRARIES ${OPENGL_gl_LIBRARY}) if(TARGET OpenGL::GLX AND TARGET OpenGL::OpenGL) set(OPENGL_LIBRARIES ${OPENGL_opengl_LIBRARY} ${OPENGL_glx_LIBRARY}) + else() + set(OPENGL_LIBRARIES ${OPENGL_gl_LIBRARY}) endif() # ... and also includes GLU, if available. if(TARGET OpenGL::GLU) |