mirror of
https://gitlab.linphone.org/BC/public/linphone-desktop.git
synced 2026-04-17 20:08:28 +00:00
Fix mac build on x86_64
This commit is contained in:
parent
067f13f083
commit
e22a59e019
1 changed files with 6 additions and 0 deletions
|
|
@ -42,6 +42,11 @@ if( APPLE )
|
|||
if( NOT CMAKE_OSX_DEPLOYMENT_TARGET)
|
||||
set(CMAKE_OSX_DEPLOYMENT_TARGET "10.9" CACHE STRING "Minimum OS X deployment version")
|
||||
endif()
|
||||
if(CMAKE_HOST_SYSTEM_PROCESSOR MATCHES "arm64")
|
||||
set(LINPHONESDK_MACOS_ARCHS "arm64, x86_64" CACHE STRING "MacOS architectures to build for: comma-separated list of values in [arm64, x86_64]")
|
||||
else()
|
||||
set(LINPHONESDK_MACOS_ARCHS "x86_64" CACHE STRING "MacOS architectures to build for: comma-separated list of values in [x86_64]")
|
||||
endif()
|
||||
endif()
|
||||
|
||||
project(linphoneqt)
|
||||
|
|
@ -176,6 +181,7 @@ list(APPEND APP_OPTIONS "-DENABLE_VIDEO=${ENABLE_VIDEO}")
|
|||
if(LINPHONE_SDK_MAKE_RELEASE_FILE_URL)
|
||||
list(APPEND APP_OPTIONS "-DLINPHONE_SDK_MAKE_RELEASE_FILE_URL=${LINPHONE_SDK_MAKE_RELEASE_FILE_URL}")
|
||||
endif()
|
||||
|
||||
if(LINPHONESDK_MACOS_ARCHS)
|
||||
list(APPEND APP_OPTIONS "-DLINPHONESDK_MACOS_ARCHS=${LINPHONESDK_MACOS_ARCHS}")
|
||||
endif()
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue