CMake: Fix linking X11 when using EGL and not fbdev

Co-authored-by: Unknown W. Brackets <checkins@unknownbrackets.org>
This commit is contained in:
Rémi Verschelde 2018-11-06 18:31:05 +01:00
parent b6742af077
commit 3cc7054831

View File

@ -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()