mirror of
https://github.com/gnss-sdr/gnss-sdr
synced 2025-02-05 21:50:09 +00:00
Fix compiler flags when using CMAKE_TOOLCHAIN_FILE in ARM processors
This commit is contained in:
parent
c92e0cb5c0
commit
a0da65ed8a
@ -2528,7 +2528,7 @@ if((CMAKE_CXX_COMPILER_ID STREQUAL "GNU") AND NOT WIN32)
|
|||||||
if(IS_ARM)
|
if(IS_ARM)
|
||||||
# ARM-specific options
|
# ARM-specific options
|
||||||
# See https://gcc.gnu.org/onlinedocs/gcc/ARM-Options.html
|
# See https://gcc.gnu.org/onlinedocs/gcc/ARM-Options.html
|
||||||
if(NOT CMAKE_CROSSCOMPILING)
|
if(NOT CMAKE_CROSSCOMPILING AND NOT CMAKE_TOOLCHAIN_FILE)
|
||||||
add_compile_options(-mcpu=native)
|
add_compile_options(-mcpu=native)
|
||||||
endif()
|
endif()
|
||||||
else()
|
else()
|
||||||
|
Loading…
x
Reference in New Issue
Block a user