mirror of https://github.com/mgba-emu/mgba.git
SDL: Fix auto-detection of SDL version
This commit is contained in:
parent
2817c51344
commit
dd3b8bf172
|
@ -15,7 +15,7 @@ endif()
|
||||||
if(SDL_VERSION EQUAL "1.2" OR NOT SDL2_FOUND)
|
if(SDL_VERSION EQUAL "1.2" OR NOT SDL2_FOUND)
|
||||||
find_package(SDL 1.2)
|
find_package(SDL 1.2)
|
||||||
if(SDL_FOUND)
|
if(SDL_FOUND)
|
||||||
set(SDL_VERSION "1.2" PARENT_SCOPE)
|
set(SDL_VERSION "1.2")
|
||||||
set(SDL_VERSION_DEBIAN "1.2debian")
|
set(SDL_VERSION_DEBIAN "1.2debian")
|
||||||
set(USE_PIXMAN ON)
|
set(USE_PIXMAN ON)
|
||||||
endif()
|
endif()
|
||||||
|
@ -26,6 +26,7 @@ if (NOT SDL2_FOUND AND NOT SDL_FOUND)
|
||||||
return()
|
return()
|
||||||
endif()
|
endif()
|
||||||
|
|
||||||
|
set(SDL_VERSION "${SDL_VERSION}" PARENT_SCOPE)
|
||||||
add_definitions(-DBUILD_SDL)
|
add_definitions(-DBUILD_SDL)
|
||||||
|
|
||||||
find_feature(USE_PIXMAN "pixman-1")
|
find_feature(USE_PIXMAN "pixman-1")
|
||||||
|
|
Loading…
Reference in New Issue