Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/mumble-voip/mumble.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorLucius Q. User <31438459+Lucius-Q-User@users.noreply.github.com>2021-07-08 19:22:31 +0300
committerLucius Q. User <31438459+Lucius-Q-User@users.noreply.github.com>2021-07-08 21:47:24 +0300
commitfa82d1b69b687fea3e7c071904252495b7737e8e (patch)
tree25498ba8a2975a98f9683c090c688eb7de4daca0 /cmake/TargetArch.cmake
parentabc4f7db255d49d56eb8fa47c97726ca7b292c3a (diff)
BUILD(cmake): Detect ARM64 on macOS
Diffstat (limited to 'cmake/TargetArch.cmake')
-rw-r--r--cmake/TargetArch.cmake6
1 files changed, 6 insertions, 0 deletions
diff --git a/cmake/TargetArch.cmake b/cmake/TargetArch.cmake
index b90765513..e86ae766c 100644
--- a/cmake/TargetArch.cmake
+++ b/cmake/TargetArch.cmake
@@ -80,6 +80,8 @@ function(target_architecture output_var)
foreach(osx_arch ${CMAKE_OSX_ARCHITECTURES})
if("${osx_arch}" STREQUAL "ppc" AND ppc_support)
set(osx_arch_ppc TRUE)
+ elseif("${osx_arch}" STREQUAL "arm64")
+ set(osx_arch_arm64 TRUE)
elseif("${osx_arch}" STREQUAL "i386")
set(osx_arch_i386 TRUE)
elseif("${osx_arch}" STREQUAL "x86_64")
@@ -96,6 +98,10 @@ function(target_architecture output_var)
list(APPEND ARCH ppc)
endif()
+ if(osx_arch_arm64)
+ list(APPEND ARCH arm64)
+ endif()
+
if(osx_arch_i386)
list(APPEND ARCH i386)
endif()