Merge pull request #6792 from degasus/master

CMake: Prefer GLVND for OpenGL.
This commit is contained in:
Tilka 2018-05-09 21:07:33 +01:00 committed by GitHub
commit e2deb157b3
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 1 additions and 0 deletions

View File

@ -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})