Skip to content

Commit

Permalink
Merge pull request #241 from chaoticgd/fix_architecture_names_2
Browse files Browse the repository at this point in the history
Fix build error in cmake logic to determine architecture names
  • Loading branch information
chaoticgd authored Sep 18, 2024
2 parents 1bf9411 + 3350e6c commit 5a8cce6
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions cmake/release_crafter.cmake
Original file line number Diff line number Diff line change
Expand Up @@ -27,13 +27,13 @@ if(ZIP_RELEASE)
set(RELEASE_OS ${CMAKE_SYSTEM_NAME})
endif()

if(${CMAKE_OSX_ARCHITECTURES} STREQUAL "arm64")
if(CMAKE_OSX_ARCHITECTURES STREQUAL "arm64")
set(RELEASE_ARCHITECTURE "arm64")
elseif(${CMAKE_OSX_ARCHITECTURES} STREQUAL "x86_64")
elseif(CMAKE_OSX_ARCHITECTURES STREQUAL "x86_64")
set(RELEASE_ARCHITECTURE "x64")
elseif(${CMAKE_SYSTEM_PROCESSOR} STREQUAL "AMD64")
elseif(CMAKE_SYSTEM_PROCESSOR STREQUAL "AMD64")
set(RELEASE_ARCHITECTURE "x64")
elseif(${CMAKE_SYSTEM_PROCESSOR} STREQUAL "x86_64")
elseif(CMAKE_SYSTEM_PROCESSOR STREQUAL "x86_64")
set(RELEASE_ARCHITECTURE "x64")
else()
set(RELEASE_ARCHITECTURE ${CMAKE_SYSTEM_PROCESSOR})
Expand Down

0 comments on commit 5a8cce6

Please sign in to comment.