CMake: Don't include X11 headers when compiling for FBDEV

When compiling for FBDEV, we don't need/want the X11 headers.
These are included by default by <EGL/eglplatform.h>; compile with
the EGL_NO_X11 macro set to prevent that.

Signed-off-by: Paul Cercueil <paul@crapouillou.net>
This commit is contained in:
Paul Cercueil 2021-03-17 14:33:03 +00:00
parent 2cdafd97ea
commit 38ea5b3c60
No known key found for this signature in database
GPG Key ID: 73EE6BD2274ABD41

View File

@ -219,7 +219,7 @@ if(USING_EGL)
add_definitions(-DUSING_EGL)
endif()
if(USING_FBDEV)
add_definitions(-DUSING_FBDEV)
add_definitions(-DUSING_FBDEV -DEGL_NO_X11)
endif()
if(USING_GLES2)
add_definitions(-DUSING_GLES2)