mirror of https://github.com/mgba-emu/mgba.git
CMake: Bump minimum macOS to 10.7 when building against SDL2
This commit is contained in:
parent
dc9a2572d1
commit
a874450c1a
|
@ -10,6 +10,9 @@ if(BUILD_SDL)
|
|||
add_definitions(-DBUILD_SDL)
|
||||
if(SDL2_FOUND)
|
||||
link_directories(${SDL2_LIBDIR})
|
||||
if(APPLE)
|
||||
set(CMAKE_C_FLAGS "${CMAKE_C_FLAGS} -mmacosx-version-min=10.7")
|
||||
endif()
|
||||
endif()
|
||||
list(APPEND PLATFORM_LIBRARY ${SDL_LIBRARY})
|
||||
list(APPEND PLATFORM_SRC ${PLATFORM_SRC} ${CMAKE_SOURCE_DIR}/src/platform/sdl/sdl-events.c ${CMAKE_SOURCE_DIR}/src/platform/sdl/sdl-audio.c)
|
||||
|
|
|
@ -22,6 +22,9 @@ if (SDL_VERSION EQUAL "2")
|
|||
endif()
|
||||
endif()
|
||||
|
||||
if(APPLE)
|
||||
set(CMAKE_C_FLAGS "${CMAKE_C_FLAGS} -mmacosx-version-min=10.7")
|
||||
endif()
|
||||
set(SDLMAIN_LIBRARY ${SDL2MAIN_LIBRARY})
|
||||
endif()
|
||||
endif()
|
||||
|
|
Loading…
Reference in New Issue