CMake: Fix GCC_ARM Cortex-M0 support

Add missing toolchain option to specify the CPU core
pull/13924/head
Hugues Kamba 2020-11-18 13:24:58 +00:00 committed by Martin Kojtal
parent ccd1c65cb8
commit 229b9ad43b
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-m0"
)
elseif(${MBED_TOOLCHAIN} STREQUAL "ARM")
list(APPEND c_cxx_compile_options