Add CMake option OpenGL_GL_PREFERENCE related to OpenGL detection.

Signed-off-by: Slávek Banko <slavek.banko@axis.cz>
pull/20/head
Slávek Banko 3 years ago
parent aa77288037
commit 37ac4ce9c6
No known key found for this signature in database
GPG Key ID: 608F5293A04BE668

@ -50,6 +50,7 @@ if( BUILD_TDESCREENSAVER )
# OpenGL(tdescreensaver/kdesavers) # OpenGL(tdescreensaver/kdesavers)
if( WITH_OPENGL ) if( WITH_OPENGL )
set( OpenGL_GL_PREFERENCE LEGACY )
find_package( OpenGL REQUIRED ) find_package( OpenGL REQUIRED )
if( NOT OPENGL_FOUND ) if( NOT OPENGL_FOUND )
tde_message_fatal( "OpenGL is required, but was not found on your system" ) tde_message_fatal( "OpenGL is required, but was not found on your system" )

Loading…
Cancel
Save