From 100be3d14be359e78764d8db03ee74a46f72dc78 Mon Sep 17 00:00:00 2001 From: Hugues Kamba Date: Fri, 31 Jul 2020 18:39:57 +0100 Subject: [PATCH] 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. --- CMakeLists.txt | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/CMakeLists.txt b/CMakeLists.txt index cb69c58247..7591b999f9 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -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)