From be3ce9756092bfdc0f3f348915c3fa106e8e7288 Mon Sep 17 00:00:00 2001 From: degasus Date: Wed, 9 May 2018 09:08:22 +0200 Subject: [PATCH] CMake: Prefer GLVND for OpenGL. We have to decide if we want to link to libGL.so -- legacy libOpenGL.so -- GLVND As we use xxxGetProcAddress, we don't care about feature levels of the linked library, so we're very fine with the new way. --- CMakeLists.txt | 1 + 1 file changed, 1 insertion(+) 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})