Skip to content

Commit

Permalink
Merge pull request #11541 from akien-mga/cmake-x11-egl
Browse files Browse the repository at this point in the history
CMake: Fix linking X11 when using EGL and not fbdev
  • Loading branch information
hrydgard authored Nov 7, 2018
2 parents 4c3f168 + 3cc7054 commit 99867ad
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -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()

Expand Down

0 comments on commit 99867ad

Please sign in to comment.