Using host data rather.

This commit is contained in:
David Carlier 2020-03-07 12:19:48 +00:00
parent 854e81c11d
commit 2884affbd7

View file

@ -132,7 +132,7 @@ if(CMAKE_C_COMPILER_ID MATCHES "AppleClang|Clang|GNU|Intel")
endif() endif()
# Architecture flags # Architecture flags
if(${CMAKE_SYSTEM_PROCESSOR} MATCHES "arm") if(${CMAKE_HOST_SYSTEM_PROCESSOR} MATCHES "arm")
list(APPEND mi_cflags -march=native) list(APPEND mi_cflags -march=native)
endif() endif()