mirror of
https://github.com/NGSolve/netgen.git
synced 2025-01-27 05:10: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()
|
else()
|
||||||
message(STATUS "Build for generic CPU")
|
message(STATUS "Build for generic CPU")
|
||||||
endif()
|
endif()
|
||||||
|
elseif(APPLE AND CMAKE_SYSTEM_PROCESSOR STREQUAL "arm64")
|
||||||
|
# no flag necessary/available on Apple M1
|
||||||
else()
|
else()
|
||||||
target_compile_options(ngcore PUBLIC "-march=native")
|
target_compile_options(ngcore PUBLIC "-march=native")
|
||||||
endif(WIN32)
|
endif(WIN32)
|
||||||
|
Loading…
Reference in New Issue
Block a user