diff --git a/CMakeLists.txt b/CMakeLists.txt index 2dcbf97..92eeda6 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -17,12 +17,12 @@ if (MSVC) target_compile_options(Hallocy PRIVATE /W4 /Zl) else() if (CMAKE_SYSTEM_PROCESSOR MATCHES "x86_64") - target_compile_options(Hallocy PRIVATE -mavx512f -mavx512vl) - target_compile_options(HallocyTest PRIVATE -mavx512f -mavx512vl) + target_compile_options(Hallocy PRIVATE -mavx512f -mavx512vl -march=native) + target_compile_options(HallocyTest PRIVATE -mavx512f -mavx512vl -march=native) + elseif(CMAKE_SYSTEM_PROCESSOR MATCHES "arm") + target_compile_options(Hallocy PRIVATE -mfpu=neon) + target_compile_options(HallocyTest PRIVATE -mfpu=neon) endif() - - target_compile_options(Hallocy PRIVATE -march=native) - target_compile_options(HallocyTest PRIVATE -march=native) target_compile_options(Hallocy PRIVATE -Wall -Wextra -pedantic) endif() \ No newline at end of file