Skip to content

Commit

Permalink
suppress CMake CMP0072 warning
Browse files Browse the repository at this point in the history
  • Loading branch information
mboerwinkle committed Jul 19, 2018
1 parent c20f791 commit 7a1e638
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -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)
Expand Down

0 comments on commit 7a1e638

Please sign in to comment.