Added OpenGL preference variable to cmake build file to get rid of nuisance warning.

This commit is contained in:
mjbudd77 2020-07-10 15:08:05 -04:00
parent 69a761a477
commit 0188c11e8b
1 changed files with 7 additions and 1 deletions

View File

@ -17,7 +17,13 @@ if(WIN32)
link_directories( ${CMAKE_SOURCE_DIR}/src/drivers/win/directx )
else(WIN32)
# Non Windows System
# Use the package PkgConfig to detect headers/library files
# UNIX (Linux or Mac OSX)
#set (OpenGL_GL_PREFERENCE GLVND)
set (OpenGL_GL_PREFERENCE LEGACY)
# Use the built-in cmake find_package functions to find dependencies
# Use package PkgConfig to detect headers/library what find_package cannot find.
find_package(PkgConfig REQUIRED)
find_package(Qt5 COMPONENTS Widgets OpenGL REQUIRED)
find_package(OpenGL REQUIRED)