Skip to content

Commit

Permalink
Set VCPKG_OSX_DEPLOYMENT_TARGET with 10.15 in triplets
Browse files Browse the repository at this point in the history
  • Loading branch information
BewareMyPower committed Dec 16, 2024
1 parent 812bc98 commit b92cf38
Show file tree
Hide file tree
Showing 3 changed files with 16 additions and 0 deletions.
7 changes: 7 additions & 0 deletions arm64-osx.cmake
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
set(VCPKG_TARGET_ARCHITECTURE arm64)
set(VCPKG_CRT_LINKAGE dynamic)
set(VCPKG_LIBRARY_LINKAGE static)

set(VCPKG_CMAKE_SYSTEM_NAME Darwin)
set(VCPKG_OSX_ARCHITECTURES arm64)
set(VCPKG_OSX_DEPLOYMENT_TARGET 10.15)
2 changes: 2 additions & 0 deletions pkg/mac/build-static-library.sh
Original file line number Diff line number Diff line change
Expand Up @@ -23,8 +23,10 @@ cd `dirname $0`/../..

if [[ $ARCH == "x86_64" ]]; then
export VCPKG_TRIPLET=x64-osx
cp -f x64-osx.cmake vcpkg/triplets/x64-osx.cmake
elif [[ $ARCH == "arm64" ]]; then
export VCPKG_TRIPLET=arm64-osx
cp -f arm64-osx.cmake vcpkg/triplets/community/arm64-osx.cmake
else
echo "Invalid ARCH: $ARCH"
exit 1
Expand Down
7 changes: 7 additions & 0 deletions x64-osx.cmake
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
set(VCPKG_TARGET_ARCHITECTURE x64)
set(VCPKG_CRT_LINKAGE dynamic)
set(VCPKG_LIBRARY_LINKAGE static)

set(VCPKG_CMAKE_SYSTEM_NAME Darwin)
set(VCPKG_OSX_ARCHITECTURES x86_64)
set(VCPKG_OSX_DEPLOYMENT_TARGET 10.15)

0 comments on commit b92cf38

Please sign in to comment.