Skip to content

Commit

Permalink
cmake: add detection logic for aarch64 (#224)
Browse files Browse the repository at this point in the history
  • Loading branch information
davide125 committed Jul 12, 2023
1 parent 1469ac4 commit 4dcec4c
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion cmake/arch-detect.cmake
Original file line number Diff line number Diff line change
Expand Up @@ -35,6 +35,8 @@ set(archdetect_c_code "
#else
#error cmake_ARCH ppc
#endif
#elif defined(__aarch64__) || defined(_M_ARM64)
#error cmake_ARCH arm64
#endif
#error cmake_ARCH unknown
Expand Down Expand Up @@ -101,4 +103,4 @@ function(target_architecture output_var)
endif()

set(${output_var} "${ARCH}" PARENT_SCOPE)
endfunction()
endfunction()

0 comments on commit 4dcec4c

Please sign in to comment.