Set OpenGL_GL_PREFERENCE for CMake 3.11+
This commit is contained in:
parent
9edfd25b95
commit
850aac5ec5
|
@ -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 )
|
||||
|
||||
#
|
||||
|
|
Loading…
Reference in New Issue