mirror of https://github.com/mgba-emu/mgba.git
Speculative fixes for SDL fallback and failing configuring
This commit is contained in:
parent
c7bb9618a0
commit
59f1018dd2
|
@ -14,10 +14,11 @@ 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)
|
||||||
|
set(SDL_VERSION "1.2" PARENT_SCOPE)
|
||||||
endif()
|
endif()
|
||||||
|
|
||||||
if (NOT SDL2_FOUND AND NOT SDL_FOUND)
|
if (NOT SDL2_FOUND AND NOT SDL_FOUND)
|
||||||
set(BUILD_SDL OFF)
|
set(BUILD_SDL OFF PARENT_SCOPE)
|
||||||
return()
|
return()
|
||||||
endif()
|
endif()
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue