From 38ea5b3c601fdf06c2393b68e90093127043c03d Mon Sep 17 00:00:00 2001 From: Paul Cercueil Date: Wed, 17 Mar 2021 14:33:03 +0000 Subject: [PATCH] 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 ; compile with the EGL_NO_X11 macro set to prevent that. Signed-off-by: Paul Cercueil --- CMakeLists.txt | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/CMakeLists.txt b/CMakeLists.txt index db6760b140..88bc9cf0c7 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -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)