Set OpenGL_GL_PREFERENCE for CMake 3.11+

This commit is contained in:
Maciej Suminski 2018-06-11 10:16:24 +02:00
parent 9edfd25b95
commit 850aac5ec5
1 changed files with 1 additions and 0 deletions

View File

@ -579,6 +579,7 @@ endif()
#
# Find OpenGL library, required
#
set( OpenGL_GL_PREFERENCE "GLVND" ) # CMake 3.11+ setting; see 'cmake --help-policy CMP0072'
find_package( OpenGL REQUIRED )
#