quantumlib / qsim

Schrödinger and Schrödinger-Feynman simulators for quantum circuits.
Apache License 2.0
455 stars 153 forks source link

Use CMAKE_SYSTEM_NAME and CMAKE_SYSTEM_PROCESSOR for cross-compiling #652

Closed basnijholt closed 10 months ago

basnijholt commented 10 months ago

Currently, the way that CMake checks for architecture doesn't allow for cross compiling for MacOS ARM64. This PR fixes that.

It is based on 0009-Use-CMAKE_SYSTEM_NAME-and-CMAKE_SYSTEM_PROCESSOR-for.patch in the conda-forge feedstock where we build a working qsim version that runs on MacOS ARM64 machines.