mirror of
https://github.com/Kitware/CMake.git
synced 2026-03-06 22:58:35 -06:00
Merge topic 'FindOpenGL-GLX-no-GLVND'
fb4b2ed0d3 FindOpenGL: handle GLX without GLVND
Acked-by: Kitware Robot <kwrobot@kitware.com>
Merge-request: !5861
This commit is contained in:
@@ -465,7 +465,7 @@ if(OPENGL_FOUND)
|
||||
|
||||
# ::GLX is a GLVND library, and thus Linux-only: we don't bother checking
|
||||
# for a framework version of this library.
|
||||
if(OpenGL_GLX_FOUND AND NOT TARGET OpenGL::GLX)
|
||||
if(OpenGL_GLX_FOUND AND NOT TARGET OpenGL::GLX AND TARGET OpenGL::OpenGL)
|
||||
if(IS_ABSOLUTE "${OPENGL_glx_LIBRARY}")
|
||||
add_library(OpenGL::GLX UNKNOWN IMPORTED)
|
||||
set_target_properties(OpenGL::GLX PROPERTIES IMPORTED_LOCATION
|
||||
|
||||
Reference in New Issue
Block a user