CMake: Generic check for desktop GL and EGL on Linux systems

This commit is contained in:
Nicolas Caramelli
2021-05-06 15:43:16 +02:00
committed by Sam Lantinga
parent fd121b5ec0
commit 6a2af48ad7
2 changed files with 55 additions and 73 deletions

View File

@@ -1202,14 +1202,14 @@ elseif(UNIX AND NOT APPLE AND NOT ANDROID AND NOT RISCOS)
CheckRPI()
CheckX11()
CheckDirectFB()
CheckOpenGLX11()
CheckOpenGLESX11()
# Need to check for EGL first because KMSDRM and Wayland depends on it.
CheckEGL()
CheckKMSDRM()
CheckGLX()
CheckOpenGL()
CheckOpenGLES()
CheckWayland()
CheckVivante()
# Need to check EGL before checking KMSDRM because KMSDRM depends on it.
CheckEGLKMSDRM()
CheckKMSDRM()
CheckOpenGLKMSDRM()
endif()
if(UNIX)