Skip to content

Commit

Permalink
SDL: Fix auto-detection of SDL version
Browse files Browse the repository at this point in the history
  • Loading branch information
ccawley2011 authored and endrift committed Dec 1, 2018
1 parent b55fac0 commit 42f65db
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion src/platform/sdl/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@ endif()
if(SDL_VERSION EQUAL "1.2" OR NOT SDL2_FOUND)
find_package(SDL 1.2)
if(SDL_FOUND)
set(SDL_VERSION "1.2" PARENT_SCOPE)
set(SDL_VERSION "1.2")
set(SDL_VERSION_DEBIAN "1.2debian")
set(USE_PIXMAN ON)
endif()
Expand All @@ -26,6 +26,7 @@ if (NOT SDL2_FOUND AND NOT SDL_FOUND)
return()
endif()

set(SDL_VERSION "${SDL_VERSION}" PARENT_SCOPE)
add_definitions(-DBUILD_SDL)

find_feature(USE_PIXMAN "pixman-1")
Expand Down

0 comments on commit 42f65db

Please sign in to comment.