mirror of
https://github.com/dolphin-emu/dolphin.git
synced 2025-01-09 15:49:25 +01:00
CMake: use CMAKE_OSX_DEPLOYMENT_TARGET
This commit is contained in:
parent
951eb9a801
commit
0ab3b1a3ff
@ -3,6 +3,11 @@
|
|||||||
#
|
#
|
||||||
cmake_minimum_required(VERSION 3.5.0)
|
cmake_minimum_required(VERSION 3.5.0)
|
||||||
set(CMAKE_OSX_ARCHITECTURES "x86_64")
|
set(CMAKE_OSX_ARCHITECTURES "x86_64")
|
||||||
|
# Minimum OS X version.
|
||||||
|
# This is inserted into the Info.plist as well.
|
||||||
|
# Note that the SDK determines the maximum version of which optional
|
||||||
|
# features can be used, not the minimum required version to run.
|
||||||
|
set(CMAKE_OSX_DEPLOYMENT_TARGET "10.9" CACHE string "")
|
||||||
|
|
||||||
project(dolphin-emu)
|
project(dolphin-emu)
|
||||||
option(USE_EGL "Enables EGL OpenGL Interface" OFF)
|
option(USE_EGL "Enables EGL OpenGL Interface" OFF)
|
||||||
@ -306,12 +311,6 @@ if(APPLE)
|
|||||||
set(CMAKE_PREFIX_PATH "${CMAKE_PREFIX_PATH};/usr")
|
set(CMAKE_PREFIX_PATH "${CMAKE_PREFIX_PATH};/usr")
|
||||||
endif()
|
endif()
|
||||||
|
|
||||||
# Minimum OS X version.
|
|
||||||
# This is inserted into the Info.plist as well.
|
|
||||||
# Note that the SDK determines the maximum version of which optional
|
|
||||||
# features can be used, not the minimum required version to run.
|
|
||||||
set(OSX_MIN_VERSION "10.9")
|
|
||||||
set(TARGET_FLAGS "-mmacosx-version-min=${OSX_MIN_VERSION}")
|
|
||||||
# Do not warn about frameworks that are not available on all architectures.
|
# Do not warn about frameworks that are not available on all architectures.
|
||||||
# This avoids a warning when linking with QuickTime.
|
# This avoids a warning when linking with QuickTime.
|
||||||
set(CMAKE_EXE_LINKER_FLAGS "${CMAKE_EXE_LINKER_FLAGS} -Wl,-no_arch_warnings")
|
set(CMAKE_EXE_LINKER_FLAGS "${CMAKE_EXE_LINKER_FLAGS} -Wl,-no_arch_warnings")
|
||||||
|
@ -75,7 +75,7 @@
|
|||||||
<key>NSHumanReadableCopyright</key>
|
<key>NSHumanReadableCopyright</key>
|
||||||
<string>Licensed under GPL version 2 or later (GPLv2+)</string>
|
<string>Licensed under GPL version 2 or later (GPLv2+)</string>
|
||||||
<key>LSMinimumSystemVersion</key>
|
<key>LSMinimumSystemVersion</key>
|
||||||
<string>${OSX_MIN_VERSION}</string>
|
<string>${CMAKE_OSX_DEPLOYMENT_TARGET}</string>
|
||||||
<key>NSHighResolutionCapable</key>
|
<key>NSHighResolutionCapable</key>
|
||||||
<true/>
|
<true/>
|
||||||
<key>CSResourcesFileMapped</key>
|
<key>CSResourcesFileMapped</key>
|
||||||
|
@ -75,7 +75,7 @@
|
|||||||
<key>NSHumanReadableCopyright</key>
|
<key>NSHumanReadableCopyright</key>
|
||||||
<string>Licensed under GPL version 2</string>
|
<string>Licensed under GPL version 2</string>
|
||||||
<key>LSMinimumSystemVersion</key>
|
<key>LSMinimumSystemVersion</key>
|
||||||
<string>${OSX_MIN_VERSION}</string>
|
<string>${CMAKE_OSX_DEPLOYMENT_TARGET}</string>
|
||||||
<key>LSRequiresCarbon</key>
|
<key>LSRequiresCarbon</key>
|
||||||
<true/>
|
<true/>
|
||||||
<key>NSHighResolutionCapable</key>
|
<key>NSHighResolutionCapable</key>
|
||||||
|
Loading…
x
Reference in New Issue
Block a user