diff --git a/gui/qt/CMakePresets.json b/gui/qt/CMakePresets.json index fa337c586..402fed485 100644 --- a/gui/qt/CMakePresets.json +++ b/gui/qt/CMakePresets.json @@ -166,7 +166,13 @@ }, { "name": "Mac-x64-Qt5", - "inherits": [ "Mac-x64-Qt6", "Qt5" ] + "inherits": [ "Mac-x64-Qt6", "Qt5" ], + "cacheVariables": { + "VCPKG_TARGET_TRIPLET": { + "type": "STRING", + "value": "x64-osx-minver" + } + } }, { "name": "Mac-arm64-Qt5", diff --git a/gui/qt/triplets/x64-osx-minver-release.cmake b/gui/qt/triplets/x64-osx-minver-release.cmake new file mode 100644 index 000000000..8c68c2137 --- /dev/null +++ b/gui/qt/triplets/x64-osx-minver-release.cmake @@ -0,0 +1,10 @@ +set(VCPKG_BUILD_TYPE release) +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.13) +set(VCPKG_C_FLAGS -mmacosx-version-min=10.13) +set(VCPKG_CXX_FLAGS -mmacosx-version-min=10.13) +set(VCPKG_BUILD_TYPE release) \ No newline at end of file diff --git a/gui/qt/triplets/x64-osx-minver.cmake b/gui/qt/triplets/x64-osx-minver.cmake new file mode 100644 index 000000000..c8d011802 --- /dev/null +++ b/gui/qt/triplets/x64-osx-minver.cmake @@ -0,0 +1,9 @@ +set(VCPKG_BUILD_TYPE release) +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.13) +set(VCPKG_C_FLAGS -mmacosx-version-min=10.13) +set(VCPKG_CXX_FLAGS -mmacosx-version-min=10.13) \ No newline at end of file