diff --git a/CMakeLists.txt b/CMakeLists.txt index 77b9913253..0217c494c2 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -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})