From bd3135f8d3e7554071446d33bb14391ef22ce207 Mon Sep 17 00:00:00 2001 From: Dan Berglund Date: Tue, 27 May 2025 13:05:44 -0600 Subject: [PATCH] CMake: Set default CMAKE_OSX_DEPLOYMENT_TARGET to 14.0 This makes the build system aware of which macOS version we're targeting, and will make it an error to newer APIs without explicitly checking the availability. Note that the js REPL CI job still sets the deployment target to 11.0 explicitly. --- Meta/CMake/common_options.cmake | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/Meta/CMake/common_options.cmake b/Meta/CMake/common_options.cmake index ee1f2446aa5..8e5655a6395 100644 --- a/Meta/CMake/common_options.cmake +++ b/Meta/CMake/common_options.cmake @@ -41,6 +41,10 @@ serenity_option(ENABLE_SWIFT OFF CACHE BOOL "Enable building Swift files") serenity_option(ENABLE_STD_STACKTRACE OFF CACHE BOOL "Force use of std::stacktrace instead of libbacktrace. If it is not supported the build will fail") serenity_option(ENABLE_WINDOWS_CI OFF CACHE BOOL "Enable building targets supported on Windows for CI") +if (APPLE AND NOT CMAKE_OSX_DEPLOYMENT_TARGET) + set(CMAKE_OSX_DEPLOYMENT_TARGET 14.0) +endif() + if (ENABLE_SWIFT) include(${CMAKE_CURRENT_LIST_DIR}/Swift/swift-settings.cmake) endif()