Merge pull request #14677 from SeanMcG/glvnd_detection

cmake: use vendor-neutral GL implementation when available
This commit is contained in:
Henrik Rydgård authored and GitHub committed 2021-08-02 20:55:16 +02:00
commit 0192f9daab
1 file changed
+1 -1
+1 -1
View File
@@ -1954,7 +1954,7 @@ if(WIN32)
set(GlslangLibs ${GlslangLibs} spirv-cross-hlsl)
endif()
if(OpenGL_OpenGL_FOUND AND NOT APPLE)
if(OPENGL_opengl_LIBRARY AND OpenGL_GL_PREFERENCE STREQUAL GLVND AND NOT APPLE)
set(OPENGL_LIBRARIES OpenGL::OpenGL)
endif()