From 46867bf7fd73f1f08d326571b3e71eb553cfcf24 Mon Sep 17 00:00:00 2001
From: Martin Bauer <martin.bauer@fau.de>
Date: Thu, 14 Feb 2019 09:19:22 +0100
Subject: [PATCH] Newer CMake version reported warning when calling OpenGL find
 script

---
 CMakeLists.txt | 1 +
 1 file changed, 1 insertion(+)

diff --git a/CMakeLists.txt b/CMakeLists.txt
index f4f3a50dc..cf77d141a 100644
--- a/CMakeLists.txt
+++ b/CMakeLists.txt
@@ -858,6 +858,7 @@ option (WALBERLA_ENABLE_GUI "This flag builds the graphical user interface, depe
 if ( WALBERLA_ENABLE_GUI )
 
     find_package( Qt4 COMPONENTS QtCore QtGui QtOpenGL QtXml REQUIRED )
+    set( OpenGL_GL_PREFERENCE LEGACY )
     find_package( OpenGL REQUIRED )
 
     INCLUDE( ${QT_USE_FILE} )
-- 
GitLab