repertory/cmake/arch_detection.cmake
Scott E. Graves 5ec91e2d20
All checks were successful
BlockStorage/repertory_osx_builds/pipeline/head This commit looks good
BlockStorage/repertory_linux_builds/pipeline/head This commit looks good
fix
2023-12-01 11:12:58 -06:00

11 lines
310 B
CMake

if ("${CMAKE_SIZEOF_VOID_P}" EQUAL "4")
message(FATAL_ERROR "32-bit compilation is not supported")
else()
if (CMAKE_SYSTEM_PROCESSOR MATCHES "^(aarch64.*|AARCH64.*|arm64.*|ARM64.*)")
set(REPERTORY_UNIX_ARCH armv8-a)
set(IS_ARM64 TRUE)
else()
set(REPERTORY_UNIX_ARCH x86-64)
endif()
endif()