OpenGL_GL_PREFERENCE set to LEGACY

This commit is contained in:
Xavier Del Campo Romero 2020-06-02 23:37:19 +02:00
parent ece90128a0
commit 66d4b1aff7

View File

@ -18,6 +18,7 @@ set(GTK_LIBRARIES ${GTK3_LIBRARY} ${GDK3_LIBRARY} ${GDKPixbuf_LIBRARY} ${Pango_L
find_package(X11 REQUIRED)
set(OpenGL_GL_PREFERENCE LEGACY)
find_package(OpenGL REQUIRED)
if(NOT OPENGL_FOUND)
message(FATAL_ERROR "GL library not found")