From e7e9f00bf44926982ed7a6687f4e971c8790c3e2 Mon Sep 17 00:00:00 2001 From: Alexandre Bique Date: Tue, 24 Sep 2024 00:44:43 +0200 Subject: [PATCH] set the osx deployment target --- CMakeLists.txt | 1 + vcpkg-overlay/triplets/arm64-osx-cp.cmake | 2 ++ 2 files changed, 3 insertions(+) diff --git a/CMakeLists.txt b/CMakeLists.txt index a753b09..a59678e 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -5,6 +5,7 @@ cmake_policy(SET CMP0100 NEW) # handle .hh files enable_testing() set(CMAKE_MSVC_RUNTIME_LIBRARY MultiThreadedDLL) +set(CMAKE_OSX_DEPLOYMENT_TARGET 12.0) project(CLAP_PLUGINS C CXX) diff --git a/vcpkg-overlay/triplets/arm64-osx-cp.cmake b/vcpkg-overlay/triplets/arm64-osx-cp.cmake index 186ccec..9595ecb 100644 --- a/vcpkg-overlay/triplets/arm64-osx-cp.cmake +++ b/vcpkg-overlay/triplets/arm64-osx-cp.cmake @@ -10,6 +10,8 @@ set(VCPKG_OSX_ARCHITECTURES arm64) set(VCPKG_C_FLAGS_RELEASE "-Os -fomit-frame-pointer") set(VCPKG_CXX_FLAGS_RELEASE "-Os -fomit-frame-pointer") +set(VCPKG_OSX_DEPLOYMENT_TARGET 12.0) + #if(NOT PORT MATCHES "harfbuzz") # harfbuzz is badly packaged for now, so we also make the debug build # https://github.com/microsoft/vcpkg/issues/22680