mirror of https://github.com/mgba-emu/mgba.git
CMake: Set both -mmacosx-version-min and CMAKE_OSX_DEPLOYMENT_TARGET
This commit is contained in:
parent
dc263295dd
commit
d9b43463d0
|
@ -249,7 +249,7 @@ if(APPLE)
|
|||
endif()
|
||||
|
||||
if(NOT CMAKE_SYSTEM_VERSION VERSION_LESS "10.0") # Darwin 10.x is Mac OS X 10.6
|
||||
set(CMAKE_C_FLAGS "${CMAKE_C_FLAGS} -mmacosx-version-min=10.6")
|
||||
set(CMAKE_OSX_DEPLOYMENT_TARGET "10.6")
|
||||
endif()
|
||||
# Not supported until Xcode 9
|
||||
if(CMAKE_C_COMPILER_ID STREQUAL "AppleClang" AND CMAKE_C_COMPILER_VERSION VERSION_LESS "9")
|
||||
|
|
|
@ -79,6 +79,7 @@ if(APPLE)
|
|||
endif()
|
||||
set(CMAKE_C_FLAGS "${CMAKE_C_FLAGS} -mmacosx-version-min=${MIN_VER}")
|
||||
set(CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} -mmacosx-version-min=${MIN_VER}")
|
||||
set(CMAKE_OSX_DEPLOYMENT_TARGET ${MIN_VER})
|
||||
if (CMAKE_CXX_COMPILER_ID MATCHES "Clang")
|
||||
set(CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} -stdlib=libc++")
|
||||
endif()
|
||||
|
|
|
@ -24,6 +24,7 @@ if (SDL_VERSION EQUAL "2")
|
|||
|
||||
if(APPLE)
|
||||
set(CMAKE_C_FLAGS "${CMAKE_C_FLAGS} -mmacosx-version-min=10.7")
|
||||
set(CMAKE_OSX_DEPLOYMENT_TARGET "10.7")
|
||||
endif()
|
||||
set(SDLMAIN_LIBRARY ${SDL2MAIN_LIBRARY})
|
||||
endif()
|
||||
|
|
Loading…
Reference in New Issue