[develop2] MacOS arm64 architecture detection
fklebert opened this issue · comments
Fabian Klebert commented
function(detect_arch ARCH)
if(CMAKE_SYSTEM_PROCESSOR STREQUAL aarch64)
set(_ARCH armv8)
does not correctly detect MacOS arm64 (M1) as CMAKE_SYSTEM_PROCESSOR is set to arm64
.
Changing it to
if(CMAKE_SYSTEM_PROCESSOR MATCHES "aarch64|arm64")
set(_ARCH armv8)
fixes it.
Luis Caro Campos commented