Other: catalina build.

Other: fix intel build of bridge-gui.
This commit is contained in:
Xavier Michelon
2022-11-30 15:20:39 +01:00
parent 6c30a04ac0
commit 49d65292c0
6 changed files with 12 additions and 10 deletions

View File

@ -19,9 +19,6 @@
include_guard()
set(CMAKE_OSX_DEPLOYMENT_TARGET 11.0)
if (NOT DEFINED BRIDGE_REPO_ROOT)
message(FATAL_ERROR "BRIDGE_REPO_ROOT is not defined.")
endif()
@ -73,11 +70,13 @@ if (APPLE)
endif()
if (CMAKE_OSX_ARCHITECTURES STREQUAL "arm64")
set(CMAKE_OSX_DEPLOYMENT_TARGET 11.0)
message(STATUS "Building for Apple Silicon Mac computers")
set(VCPKG_TARGET_TRIPLET arm64-osx-min-11-0)
elseif (CMAKE_OSX_ARCHITECTURES STREQUAL "x86_64")
set(CMAKE_OSX_DEPLOYMENT_TARGET 10.15)
message(STATUS "Building for Intel based Mac computers")
set(VCPKG_TARGET_TRIPLET x64-osx-min-11-0)
set(VCPKG_TARGET_TRIPLET x64-osx-min-10-15)
else ()
message(FATAL_ERROR "Unknown value for CMAKE_OSX_ARCHITECTURE. Please use one of \"arm64\" and \"x86_64\". Multiple architectures are not supported.")
endif ()