CMake: Fix GCC_ARM Cortex-M3 support

Add missing toolchain option to specify the CPU core
pull/13924/head
Hugues Kamba 2020-11-18 13:44:12 +00:00 committed by Martin Kojtal
parent 4acc57c2f4
commit 59da1e952c
1 changed files with 1 additions and 0 deletions

View File

@ -5,6 +5,7 @@
if(${MBED_TOOLCHAIN} STREQUAL "GCC_ARM")
list(APPEND common_options
"-mthumb"
"-mcpu=cortex-m3"
)
elseif(${MBED_TOOLCHAIN} STREQUAL "ARM")
list(APPEND c_cxx_compile_options