From 30fe721a3d1b272b7508f1c27b8872c6de45ad06 Mon Sep 17 00:00:00 2001 From: Andrew Kaster Date: Thu, 29 May 2025 20:22:04 -0600 Subject: [PATCH] CMake: Set a higher default CMAKE_OSX_DEPLOYMENT_TARGET with Swift We have tests that require 15.0 without checking for availability. --- CMakeLists.txt | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/CMakeLists.txt b/CMakeLists.txt index 3ae05cabbdc..afcc5bf2658 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -11,7 +11,11 @@ endif() include("Meta/CMake/use_linker.cmake") if (APPLE AND NOT CMAKE_OSX_DEPLOYMENT_TARGET) - set(CMAKE_OSX_DEPLOYMENT_TARGET 14.0) + if (ENABLE_SWIFT) + set(CMAKE_OSX_DEPLOYMENT_TARGET 15.0) + else() + set(CMAKE_OSX_DEPLOYMENT_TARGET 14.0) + endif() endif() # Pass additional information to vcpkg toolchain files if we are using vcpkg.