From 0a309e5fb191f78a12ab482d773361bb39147b99 Mon Sep 17 00:00:00 2001 From: chaoticgd <43898262+chaoticgd@users.noreply.github.com> Date: Wed, 18 Sep 2024 17:59:22 +0100 Subject: [PATCH] Fix the architecture names used for builds --- cmake/release_crafter.cmake | 10 +++++++--- 1 file changed, 7 insertions(+), 3 deletions(-) diff --git a/cmake/release_crafter.cmake b/cmake/release_crafter.cmake index b85bc79..2295cc7 100644 --- a/cmake/release_crafter.cmake +++ b/cmake/release_crafter.cmake @@ -27,10 +27,14 @@ if(ZIP_RELEASE) set(RELEASE_OS ${CMAKE_SYSTEM_NAME}) endif() - if(${CMAKE_SYSTEM_PROCESSOR} STREQUAL "AMD64") - set(RELEASE_ARCHITECTURE "x64") - elseif(${CMAKE_SYSTEM_PROCESSOR} STREQUAL "ARM64") + if(${CMAKE_OSX_ARCHITECTURES} STREQUAL "arm64") set(RELEASE_ARCHITECTURE "arm64") + elseif(${CMAKE_OSX_ARCHITECTURES} STREQUAL "x86_64") + set(RELEASE_ARCHITECTURE "x64") + elseif(${CMAKE_SYSTEM_PROCESSOR} STREQUAL "AMD64") + set(RELEASE_ARCHITECTURE "x64") + elseif(${CMAKE_SYSTEM_PROCESSOR} STREQUAL "x86_64") + set(RELEASE_ARCHITECTURE "x64") else() set(RELEASE_ARCHITECTURE ${CMAKE_SYSTEM_PROCESSOR}) endif()