Add CMake option OpenGL_GL_PREFERENCE related to OpenGL detection.

Signed-off-by: Slávek Banko <slavek.banko@axis.cz>
(cherry picked from commit 37ac4ce9c6)
r14.0.x
Slávek Banko 3 years ago
parent 441168756e
commit f391578870
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