CMake: Fix ARM toolchain compilation

Ensure the MCU core CMake module is added before the toolchain
CMake module as the latter requires CMAKE_SYSTEM_PROCESSOR
to be set when configuring the ARM toolchain.
pull/13566/head
Hugues Kamba 2020-07-31 18:39:57 +01:00
parent 06f4e1bc8b
commit 100be3d14b
1 changed files with 1 additions and 1 deletions

View File

@ -14,8 +14,8 @@ endif()
add_library(mbed-os OBJECT)
include(${MBED_CONFIG_PATH}/mbed_config.cmake)
include(${MBED_ROOT}/cmake/toolchain.cmake)
include(${MBED_ROOT}/cmake/core.cmake)
include(${MBED_ROOT}/cmake/toolchain.cmake)
include(${MBED_ROOT}/cmake/profile.cmake)
include(${MBED_ROOT}/cmake/util.cmake)