mirror of
https://github.com/NGSolve/netgen.git
synced 2025-01-11 21:50:34 +05:00
Handle USE_NATIVE_ARCH=ON correctly on Apple M1
This commit is contained in:
parent
d30accdc1a
commit
65afc44dcc
@ -474,6 +474,8 @@ if(USE_NATIVE_ARCH)
|
||||
else()
|
||||
message(STATUS "Build for generic CPU")
|
||||
endif()
|
||||
elseif(APPLE AND CMAKE_SYSTEM_PROCESSOR STREQUAL "arm64")
|
||||
# no flag necessary/available on Apple M1
|
||||
else()
|
||||
target_compile_options(ngcore PUBLIC "-march=native")
|
||||
endif(WIN32)
|
||||
|
Loading…
Reference in New Issue
Block a user