diff --git a/python/CMakeLists.txt b/python/CMakeLists.txt index 397911ae..25e1a1da 100644 --- a/python/CMakeLists.txt +++ b/python/CMakeLists.txt @@ -11,6 +11,9 @@ if(MSVC) elseif(DARWIN) SET(CMAKE_CXX_FLAGS "-Wno-int-in-bool-context -std=c++11") SET(CMAKE_CXX_FLAGS_DEBUG "-Wall") +elseif(CMAKE_SYSTEM_PROCESSOR STREQUAL "aarch64") + SET(CMAKE_CXX_FLAGS "-march=native -Wno-int-in-bool-context -std=c++11") + SET(CMAKE_CXX_FLAGS_DEBUG "-Wall") else() SET(CMAKE_CXX_FLAGS "-march=native -Wno-int-in-bool-context -std=c++11 -mavx -mfma") SET(CMAKE_CXX_FLAGS_DEBUG "-Wall")