Merge pull request #6792 from degasus/master
CMake: Prefer GLVND for OpenGL.
This commit is contained in:
commit
e2deb157b3
|
@ -410,6 +410,7 @@ endif()
|
|||
include(CheckLib)
|
||||
include(CheckCXXSourceRuns)
|
||||
|
||||
set(OpenGL_GL_PREFERENCE GLVND)
|
||||
find_package(OpenGL)
|
||||
if (OPENGL_GL)
|
||||
include_directories(${OPENGL_INCLUDE_DIR})
|
||||
|
|
Loading…
Reference in New Issue