all repos — mgba @ 42f65db3960834394438017cea28547f41560d25

mGBA Game Boy Advance Emulator

SDL: Fix auto-detection of SDL version
Cameron Cawley ccawley2011@gmail.com
Fri, 30 Nov 2018 13:28:18 +0000
commit

42f65db3960834394438017cea28547f41560d25

parent

b55fac0a8a09ec34b9ac273eeba182537db6cfe6

1 files changed, 2 insertions(+), 1 deletions(-)

jump to
M src/platform/sdl/CMakeLists.txtsrc/platform/sdl/CMakeLists.txt

@@ -15,7 +15,7 @@

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()

@@ -26,6 +26,7 @@ set(SDL_FOUND OFF PARENT_SCOPE)

return() endif() +set(SDL_VERSION "${SDL_VERSION}" PARENT_SCOPE) add_definitions(-DBUILD_SDL) find_feature(USE_PIXMAN "pixman-1")