Skip to content

Commit

Permalink
Fixed CMakeLists SDL2 on some systems (Manjaro, Debian Sid)
Browse files Browse the repository at this point in the history
  • Loading branch information
KiralyCraft committed Apr 12, 2021
1 parent 09c9f25 commit f38cb29
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions neo/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -1653,8 +1653,7 @@ else()

if(SDL2)
find_package(SDL2 REQUIRED)
include_directories(${SDL2_INCLUDE_DIRS})
set(SDLx_LIBRARY ${SDL2_LIBRARIES})
set(SDLx_LIBRARY SDL2::SDL2)
else()
find_package(SDL REQUIRED)
include_directories(${SDL_INCLUDE_DIR})
Expand Down

0 comments on commit f38cb29

Please sign in to comment.