conan-io / cmake-conan

CMake wrapper for conan C and C++ package manager

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

[develop2] MacOS arm64 architecture detection

fklebert opened this issue · comments

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.

Hi @fklebert - thank you for reporting this.

We have a PR open that will include this fix: #529 - will look into merging this today.

commented

Closed by #529