From 58108dd0d0f2a243a71b39154f0a3be0f766201d Mon Sep 17 00:00:00 2001 From: Amish Naidu Date: Thu, 4 Oct 2018 12:12:09 +0530 Subject: [PATCH] Set OpenGL_GL_PREFERENCE to LEGACY to silence warnings on cmake 3.11+ --- CMakeLists.txt | 1 + 1 file changed, 1 insertion(+) diff --git a/CMakeLists.txt b/CMakeLists.txt index d4fc2982c..5b5091484 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -49,6 +49,7 @@ if(APPLE) endif(NOT QT_MAC_USE_COCOA) endif(APPLE) +set(OpenGL_GL_PREFERENCE LEGACY) find_package(OpenGL REQUIRED) find_package(Boost REQUIRED) find_package(Gettext REQUIRED)