Build: Set macOS deployment target to 10.14

This commit is contained in:
Connor McLaughlin 2020-10-31 14:29:11 +10:00
parent ed0777cd8d
commit 82e19f7188
2 changed files with 4 additions and 2 deletions

View File

@ -255,6 +255,7 @@ jobs:
run: |
mkdir build
cd build
export MACOSX_DEPLOYMENT_TARGET=10.14
cmake -DCMAKE_BUILD_TYPE=Release -DBUILD_SDL_FRONTEND=OFF -DBUILD_QT_FRONTEND=ON -DUSE_SDL2=ON -DQt5_DIR=/usr/local/opt/qt/lib/cmake/Qt5 ..
cmake --build . --parallel 2
cd bin
@ -271,6 +272,7 @@ jobs:
run: |
mkdir build-libretro
cd build-libretro
export MACOSX_DEPLOYMENT_TARGET=10.14
cmake -DCMAKE_BUILD_TYPE=Release -DCMAKE_BUILD_TYPE=Release -DBUILD_LIBRETRO_CORE=ON ..
cmake --build . --parallel 2
zip -j duckstation_libretro_mac.dylib.zip duckstation_libretro.dylib

View File

@ -13,8 +13,8 @@ if(${CMAKE_SYSTEM_NAME} STREQUAL "Linux")
set(SUPPORTS_WAYLAND TRUE)
endif()
# Set minimum OS version for macOS. 10.12 should work.
set(CMAKE_OSX_DEPLOYMENT_TARGET "10.12.0" CACHE STRING "")
# Set minimum OS version for macOS. 10.14 should work.
set(CMAKE_OSX_DEPLOYMENT_TARGET "10.14.0" CACHE STRING "")
# Global options.
if(NOT ANDROID)