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-08 20:34:34 +0300
committerChristian Rauch <Rauch.Christian@gmx.de>2021-08-14 23:26:40 +0300
commitbb793c1deedc254de009a1ab169c9518d8f408c5 (patch)
tree404dee8fa42e581798b40ed83098729bd5edd874
parent3b40e39d2334a4291b5589ad864d4a9656042406 (diff)
GHOST/X11: don't link GLX when using EGL
Differential Revision: https://developer.blender.org/D12034
-rw-r--r--CMakeLists.txt4
1 files changed, 2 insertions, 2 deletions
diff --git a/CMakeLists.txt b/CMakeLists.txt
index ac5c80cb0d8..ae2d4b1c8cb 100644
--- a/CMakeLists.txt
+++ b/CMakeLists.txt
@@ -1179,11 +1179,11 @@ if(WITH_GL_PROFILE_ES20)
endif()
-else()
+elseif(NOT WITH_GL_EGL)
if(OpenGL_GL_PREFERENCE STREQUAL "LEGACY" AND OPENGL_gl_LIBRARY)
list(APPEND BLENDER_GL_LIBRARIES ${OPENGL_gl_LIBRARY})
else()
- list(APPEND BLENDER_GL_LIBRARIES ${OPENGL_opengl_LIBRARY} ${OPENGL_glx_LIBRARY})
+ list(APPEND BLENDER_GL_LIBRARIES OpenGL::OpenGL OpenGL::GLX)
endif()
endif()