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:
@@ -22,7 +22,8 @@
|
|||||||
"macos_base"
|
"macos_base"
|
||||||
],
|
],
|
||||||
"cacheVariables": {
|
"cacheVariables": {
|
||||||
"CMAKE_OSX_ARCHITECTURES": "x86_64;arm64"
|
"CMAKE_OSX_ARCHITECTURES": "x86_64;arm64",
|
||||||
|
"VCPKG_TARGET_TRIPLET": "universal-osx"
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
|
|||||||
8
cmake/vcpkg-triplets/universal-osx.cmake
Normal file
8
cmake/vcpkg-triplets/universal-osx.cmake
Normal 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")
|
||||||
@@ -10,5 +10,8 @@
|
|||||||
"location": "https://github.com/microsoft/vcpkg-ce-catalog/archive/refs/heads/main.zip",
|
"location": "https://github.com/microsoft/vcpkg-ce-catalog/archive/refs/heads/main.zip",
|
||||||
"name": "microsoft"
|
"name": "microsoft"
|
||||||
}
|
}
|
||||||
|
],
|
||||||
|
"overlay-triplets": [
|
||||||
|
"./cmake/vcpkg-triplets"
|
||||||
]
|
]
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user