Skip to content

Commit

Permalink
Fix the architecture names used for builds
Browse files Browse the repository at this point in the history
  • Loading branch information
chaoticgd committed Sep 18, 2024
1 parent 11c1b36 commit ce76fdc
Showing 1 changed file with 6 additions and 2 deletions.
8 changes: 6 additions & 2 deletions cmake/release_crafter.cmake
Original file line number Diff line number Diff line change
Expand Up @@ -27,10 +27,14 @@ if(ZIP_RELEASE)
set(RELEASE_OS ${CMAKE_SYSTEM_NAME})
endif()

if(${CMAKE_SYSTEM_PROCESSOR} STREQUAL "AMD64")
if(${CMAKE_OSX_ARCHITECTURES} STREQUAL "x86_64")
set(RELEASE_ARCHITECTURE "x64")
elseif(${CMAKE_SYSTEM_PROCESSOR} STREQUAL "ARM64")
elseif(${CMAKE_OSX_ARCHITECTURES} STREQUAL "arm64")
set(RELEASE_ARCHITECTURE "arm64")
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()
Expand Down

0 comments on commit ce76fdc

Please sign in to comment.