From dada6a9d3f9a33956a8ea2a98451088d0b7189d9 Mon Sep 17 00:00:00 2001 From: Christian Rauch Date: Fri, 13 Sep 2019 11:48:04 +0100 Subject: [PATCH] set OpenGL_GL_PREFERENCE to GLVND (explicitly set CMP0072) --- src/CMakeLists.txt | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/src/CMakeLists.txt b/src/CMakeLists.txt index 26b188ec1..652f3f40b 100644 --- a/src/CMakeLists.txt +++ b/src/CMakeLists.txt @@ -138,6 +138,10 @@ if(BUILD_PANGOLIN_GUI AND BUILD_PANGOLIN_VARS AND BUILD_PANGOLIN_VIDEO ) list(APPEND SOURCES tools/video_viewer.cpp) endif() +if(LINUX) + set(OpenGL_GL_PREFERENCE "GLVND") +endif() + ####################################################### ## Setup required includes / link info