Take care of a cmake 3.11 deprecation warning when finding OpenGL.

This commit is contained in:
Shanoah Alkire 2018-12-09 01:17:02 -08:00
parent 0ff7ea3ccc
commit a97bc2309a
1 changed files with 4 additions and 0 deletions

View File

@ -13,6 +13,10 @@ if(EXISTS ${PROJECT_SOURCE_DIR}/.git)
find_package(Git)
endif()
find_package(LibLZMA)
# Using find_package OpenGL without either setting your opengl preference to GLVND or LEGACY
# is deprecated as of cmake 3.11.
set(OpenGL_GL_PREFERENCE GLVND)
find_package(OpenGL)
find_package(PNG)
find_package(Vtune)