Welcome to mirror list, hosted at ThFree Co, Russian Federation.

git.blender.org/blender.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorChristian Rauch <Rauch.Christian@gmx.de>2021-08-09 22:52:23 +0300
committerChristian Rauch <Rauch.Christian@gmx.de>2021-08-09 22:52:23 +0300
commite07b67740471c2422c9166bee83f619a16fb8fb4 (patch)
treeaa8db5d2430fa48e3268e8be2669beb1d018d081
parent605f08c043da94c99e1bf2ec4f00a79dd4498b92 (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.txt6
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)