Skip to content

Commit

Permalink
fixed CMakeLists.txt
Browse files Browse the repository at this point in the history
  • Loading branch information
bab2min committed Dec 23, 2022
1 parent 764cef8 commit 6713d4f
Showing 1 changed file with 4 additions and 3 deletions.
7 changes: 4 additions & 3 deletions CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -23,12 +23,13 @@ endif()

if(NOT KIWI_CPU_ARCH)
if (CMAKE_SYSTEM_PROCESSOR MATCHES "(x86)|(X86)|(amd64)|(AMD64)")
set(KIWI_CPU_ARCH "x86_64" PARENT_SCOPE)
set(KIWI_CPU_ARCH "x86_64")
elseif (HOST_ARCHITECTURE MATCHES "^arm64" OR CMAKE_SYSTEM_PROCESSOR MATCHES "^(arm|aarch64)")
set(KIWI_CPU_ARCH "arm64" PARENT_SCOPE)
set(KIWI_CPU_ARCH "arm64")
else()
set(KIWI_CPU_ARCH "other" PARENT_SCOPE)
set(KIWI_CPU_ARCH "other")
endif()
set(KIWI_CPU_ARCH "${KIWI_CPU_ARCH}" PARENT_SCOPE)
endif()

if(APPLE)
Expand Down

0 comments on commit 6713d4f

Please sign in to comment.