Skip to content

Commit

Permalink
Require SDL >= 2.0.5 in lib/sdl/CMakeLists.txt
Browse files Browse the repository at this point in the history
  • Loading branch information
past-due authored and perim committed Feb 13, 2018
1 parent 1bee51c commit 98dd559
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion lib/sdl/CMakeLists.txt
Expand Up @@ -4,7 +4,9 @@ project (sdl-backend CXX)
file(GLOB HEADERS "*.h")
file(GLOB SRC "*.cpp")

find_package(SDL2 REQUIRED)
set(SDL2_MIN_VERSION "2.0.5")

find_package(SDL2 ${SDL2_MIN_VERSION} REQUIRED)

add_library(sdl-backend ${HEADERS} ${SRC})
target_include_directories(sdl-backend PRIVATE ${SDL2_INCLUDE_DIR})
Expand Down

0 comments on commit 98dd559

Please sign in to comment.