summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorBrad King <brad.king@kitware.com>2017-11-08 13:51:21 (GMT)
committerKitware Robot <kwrobot@kitware.com>2017-11-08 13:52:01 (GMT)
commit7bd4c1c1bbe94c85e4e361ffcafb3c0ec204d8a6 (patch)
treebaa6ee9662a97357f73c91853881091b135173ca
parentbd68d0c252f4ebf91d03837e8404b3cb8c4f7465 (diff)
parentf44fb2dd4ce5e47cd0a12d1a25bda40f012d453a (diff)
downloadCMake-7bd4c1c1bbe94c85e4e361ffcafb3c0ec204d8a6.zip
CMake-7bd4c1c1bbe94c85e4e361ffcafb3c0ec204d8a6.tar.gz
CMake-7bd4c1c1bbe94c85e4e361ffcafb3c0ec204d8a6.tar.bz2
Merge topic 'FindOpenGL-clarify-libraries'
f44fb2dd FindOpenGL: Clarify logic constructing OPENGL_LIBRARIES Acked-by: Kitware Robot <kwrobot@kitware.com> Merge-request: !1459
-rw-r--r--Modules/FindOpenGL.cmake3
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)