From 318557c75f790a854e930e306ae027abcf449a36 Mon Sep 17 00:00:00 2001
From: Orazio <22700499+orazioedoardo@users.noreply.github.com>
Date: Sat, 29 Jun 2024 16:03:26 +0200
Subject: [PATCH] Extend (Intel) Mac compatibility all the way to OS X El
Capitan
---
CMakeLists.txt | 1 +
Platform/macOS/Info.plist | 2 ++
2 files changed, 3 insertions(+)
diff --git a/CMakeLists.txt b/CMakeLists.txt
index cbe114e..fb705ed 100644
--- a/CMakeLists.txt
+++ b/CMakeLists.txt
@@ -23,6 +23,7 @@ if(APPLE)
set(MACOSX_RPATH)
set(CMAKE_BUILD_WITH_INSTALL_RPATH true)
set(CMAKE_INSTALL_RPATH "@executable_path/../Frameworks")
+ set(CMAKE_OSX_DEPLOYMENT_TARGET "10.11")
set(CMAKE_OSX_ARCHITECTURES "arm64;x86_64")
list(APPEND SDL2_PATH "${CMAKE_CURRENT_LIST_DIR}/Libs")
list(APPEND SDL2_MIXER_PATH "${CMAKE_CURRENT_LIST_DIR}/Libs")
diff --git a/Platform/macOS/Info.plist b/Platform/macOS/Info.plist
index 4c2b538..021cd74 100644
--- a/Platform/macOS/Info.plist
+++ b/Platform/macOS/Info.plist
@@ -28,6 +28,8 @@
CSResourcesFileMapped
+ LSMinimumSystemVersion
+ 10.11
NSHighResolutionCapable