From fd90f9a4d07f477cb6a9b32b843ffecdab781658 Mon Sep 17 00:00:00 2001 From: wheremyfoodat <44909372+wheremyfoodat@users.noreply.github.com> Date: Sun, 12 Oct 2025 01:23:23 +0300 Subject: [PATCH] Bump minimum MacOS version to 13.3 if using Vulkan (#811) --- CMakeLists.txt | 10 ++++++++-- 1 file changed, 8 insertions(+), 2 deletions(-) diff --git a/CMakeLists.txt b/CMakeLists.txt index 57724593..6f35e596 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -1,9 +1,8 @@ # We need to be able to use enable_language(OBJC) on Mac, so we need CMake 3.16 vs the 3.11 we use otherwise. Blame Apple. if (APPLE) - set(CMAKE_OSX_DEPLOYMENT_TARGET "10.15" CACHE STRING "Minimum OS X deployment version") cmake_minimum_required(VERSION 3.16) else() - cmake_minimum_required(VERSION 3.11) + cmake_minimum_required(VERSION 3.12) endif() set(CMAKE_CXX_STANDARD 20) @@ -69,6 +68,13 @@ option(ENABLE_FASTMEM "Build with support for hardware fastmem" ON) option(USE_LIBRETRO_AUDIO "Enable to use the LR audio device with the LR core. Otherwise our own device is used" OFF) option(IOS_SIMULATOR_BUILD "Compiling for IOS simulator (Set to off if compiling for a real iPhone)" ON) +# Building with newer Vulkan SDK versions requires MacOS 13.3, as it uses std::format which isn't available in older libcxx +if (ENABLE_VULKAN) + set(CMAKE_OSX_DEPLOYMENT_TARGET "13.3" CACHE STRING "Minimum OS X deployment version") +else() + set(CMAKE_OSX_DEPLOYMENT_TARGET "10.15" CACHE STRING "Minimum OS X deployment version") +endif() + # Discord RPC & LuaJIT are currently not supported on iOS if(IOS) set(ENABLE_DISCORD_RPC OFF)