Linux: Use GLVND if available. (#1860)
Fixes #1859. Uses CMake's FindModule for OpenGL.
This commit is contained in:
committed by
Colby Klein
parent
81ce0e94d9
commit
65a69ea874
@@ -470,6 +470,7 @@ elseif(LINUX)
|
||||
set(HAS_FFMPEG FALSE)
|
||||
endif()
|
||||
|
||||
set(OpenGL_GL_PREFERENCE GLVND)
|
||||
find_package(OpenGL REQUIRED)
|
||||
find_package(GLEW REQUIRED)
|
||||
endif(WIN32) # LINUX, APPLE
|
||||
|
||||
Reference in New Issue
Block a user