From 3cc7054831235a7baca2f5d37c35a141f2faa1aa Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?R=C3=A9mi=20Verschelde?= Date: Tue, 6 Nov 2018 18:31:05 +0100 Subject: [PATCH] CMake: Fix linking X11 when using EGL and not fbdev Co-authored-by: Unknown W. Brackets --- CMakeLists.txt | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/CMakeLists.txt b/CMakeLists.txt index f6536a9ab3dd..025152e55129 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -489,7 +489,7 @@ if(TARGET SDL2::SDL2) target_link_libraries(Common SDL2::SDL2) endif() -if(USING_GLES2) +if(USING_GLES2 OR (USING_EGL AND NOT USING_FBDEV)) find_package(X11) endif()