aboutsummaryrefslogtreecommitdiff
path: root/cmake/overlay-triplets/x64-osx-1015-release.cmake
diff options
context:
space:
mode:
authorNadia Holmquist Pedersen <nadia@nhp.sh>2023-12-26 06:51:49 +0100
committerGitHub <noreply@github.com>2023-12-26 06:51:49 +0100
commit27ac8dbc146cd4e3c8fa34c78918297a73065a56 (patch)
treeebacf039b070508b231c0b17c9ed86c076e5b48d /cmake/overlay-triplets/x64-osx-1015-release.cmake
parent4d3af0d91529e7230398d02e7a9e8491b5d8a74d (diff)
Integrate support for building with dependencies from vcpkg (#1880)
* Integrate support for building with dependencies from vcpkg Configure the build using -DUSE_VCPKG=ON to use vcpkg. By default recommended triplets targeting the OS versions official builds support are used. You can opt out of this with -DUSE_RECOMMENDED_TRIPLETS=OFF. * Add the vcpkg manifest * Fetch vcpkg with FetchContent if we don't have it * macOS cross compiling fixes - can't use the x86_64 one as host triplet on arm64 because building Qt fails for whatever reason. Because of course it does :D - vcpkg doesn't always like periods in triplet names so removed those * x86_64 macOS should also use its recommended target when building arm64 builds
Diffstat (limited to 'cmake/overlay-triplets/x64-osx-1015-release.cmake')
-rw-r--r--cmake/overlay-triplets/x64-osx-1015-release.cmake12
1 files changed, 12 insertions, 0 deletions
diff --git a/cmake/overlay-triplets/x64-osx-1015-release.cmake b/cmake/overlay-triplets/x64-osx-1015-release.cmake
new file mode 100644
index 0000000..fcb67a7
--- /dev/null
+++ b/cmake/overlay-triplets/x64-osx-1015-release.cmake
@@ -0,0 +1,12 @@
+set(VCPKG_TARGET_ARCHITECTURE x64)
+set(VCPKG_CRT_LINKAGE dynamic)
+set(VCPKG_LIBRARY_LINKAGE static)
+
+set(VCPKG_CMAKE_SYSTEM_NAME Darwin)
+set(VCPKG_CMAKE_SYSTEM_VERSION 10.15)
+set(VCPKG_OSX_ARCHITECTURES x86_64)
+set(VCPKG_BUILD_TYPE release)
+set(VCPKG_OSX_DEPLOYMENT_TARGET 10.15)
+
+set(VCPKG_C_FLAGS -mmacosx-version-min=10.15)
+set(VCPKG_CXX_FLAGS -mmacosx-version-min=10.15)