diff options
author | Christian Rauch <Rauch.Christian@gmx.de> | 2021-08-09 22:52:23 +0300 |
---|---|---|
committer | Christian Rauch <Rauch.Christian@gmx.de> | 2021-08-09 22:52:23 +0300 |
commit | e07b67740471c2422c9166bee83f619a16fb8fb4 (patch) | |
tree | aa8db5d2430fa48e3268e8be2669beb1d018d081 | |
parent | 605f08c043da94c99e1bf2ec4f00a79dd4498b92 (diff) |
GHOST/X11: link libGL for EGL to resolve OpenGL symbolsx11-egl
This links libGL, since libOpenGL is not installed by default on some
distributions. This is a workaround to resolve OpenGL symbols, that are
otherwise resolved via GLVND.
Differential Revision: https://developer.blender.org/D12034
-rw-r--r-- | CMakeLists.txt | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/CMakeLists.txt b/CMakeLists.txt index ae2d4b1c8cb..49266c02a16 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -1189,7 +1189,11 @@ endif() if(WITH_GL_EGL) find_package(OpenGL REQUIRED EGL) - list(APPEND BLENDER_GL_LIBRARIES OpenGL::EGL) + list(APPEND BLENDER_GL_LIBRARIES ${OPENGL_egl_LIBRARY}) + + # TODO: This links libGL, since libOpenGL is not installed by default on some + # distributions. This should be removed once GLVND is properly supported. + list(APPEND BLENDER_GL_LIBRARIES ${OPENGL_gl_LIBRARY}) list(APPEND GL_DEFINITIONS -DWITH_GL_EGL -DGLEW_EGL -DGLEW_INC_EGL) |