build(vcpkg): add univesal-osx triplet

vcpkg doesn't officially support universal binaries, but this should
function as a workaround until it does one day

Signed-off-by: Seth Flynn <getchoo@tuta.io>
This commit is contained in:
Seth Flynn 2025-07-13 15:49:26 -04:00
parent 4614d683b3
commit 5c8ce8db66
No known key found for this signature in database
GPG key ID: D31BD0D494BBEE86
3 changed files with 13 additions and 1 deletions

View file

@ -22,7 +22,8 @@
"macos_base"
],
"cacheVariables": {
"CMAKE_OSX_ARCHITECTURES": "x86_64;arm64"
"CMAKE_OSX_ARCHITECTURES": "x86_64;arm64",
"VCPKG_TARGET_TRIPLET": "universal-osx"
}
},
{

View file

@ -0,0 +1,8 @@
# See https://github.com/microsoft/vcpkg/discussions/19454
# NOTE: Try to keep in sync with default arm64-osx definition
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 "arm64;x86_64")