commit 7a1e6385e80d2582438911ced03d269a8d2c1df4
parent c20f79190cf05b65409674964931e369ff2e3713
Author: mboerwinkle <mboerwinkle@gmail.com>
Date: Thu, 19 Jul 2018 16:16:54 -0500
suppress CMake CMP0072 warning
Diffstat:
1 file changed, 3 insertions(+), 0 deletions(-)
diff --git a/CMakeLists.txt b/CMakeLists.txt
@@ -44,6 +44,9 @@ src/window.h)
set(Project_Resources qt/qt.qrc gl/gl.qrc)
set(Icon_Resource exe/fstl.rc)
+#set Policy CMP0072 FindOpenGL behavior
+set(OpenGL_GL_PREFERENCE GLVND)
+
#find required packages.
find_package(Qt5 REQUIRED COMPONENTS Core Gui Widgets OpenGL)
find_package(OpenGL REQUIRED)