Merge pull request #11541 from akien-mga/cmake-x11-egl

CMake: Fix linking X11 when using EGL and not fbdev
This commit is contained in:
Henrik Rydgård authored and GitHub committed 2018-11-07 13:14:50 +01:00
commit 99867addba
1 file changed
+1 -1
+1 -1
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()