build fix for arm, adding native arch flag to be able to generate

yield asm instruction.
This commit is contained in:
David Carlier 2020-03-07 09:18:45 +00:00
parent 7c2e7eb9ef
commit 854e81c11d

View File

@ -131,6 +131,11 @@ if(CMAKE_C_COMPILER_ID MATCHES "AppleClang|Clang|GNU|Intel")
endif()
endif()
# Architecture flags
if(${CMAKE_SYSTEM_PROCESSOR} MATCHES "arm")
list(APPEND mi_cflags -march=native)
endif()
# extra needed libraries
if(WIN32)
list(APPEND mi_libraries psapi shell32 user32 bcrypt)