Skip to content

Commit

Permalink
libs: replaced incorrect LINUX cmake variable by UNIX
Browse files Browse the repository at this point in the history
  • Loading branch information
rmarquis committed Oct 3, 2021
1 parent 7f26c9d commit b9b6218
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 @@ -679,7 +679,7 @@ if(BUNDLED_SDL AND BUILD_CLIENT)
# Bye bye X11
if(APPLE)
set(SDL_CMAKE_ARGS ${SDL_CMAKE_ARGS} -DVIDEO_X11=OFF -DVIDEO_X11_XINPUT=OFF -DVIDEO_WAYLAND=OFF -DVIDEO_OPENGLES=OFF -DVIDEO_METAL=OFF -DVIDEO_COCOA=ON)
elseif(LINUX)
elseif(UNIX AND NOT APPLE)
# Wayland requires OpenglES support so that's why its enabled here.
set(SDL_CMAKE_ARGS ${SDL_CMAKE_ARGS} -DVIDEO_X11=ON -DVIDEO_X11_XINPUT=ON -DVIDEO_WAYLAND=ON -DVIDEO_OPENGLES=ON)
elseif(ARM)
Expand Down

0 comments on commit b9b6218

Please sign in to comment.