Commit Graph

10 Commits (3be2d15e2d6d2cd76e12b195b5d86d9549868fe0)

Author SHA1 Message Date
Hugues Kamba 933b1db1be CMake: Set language std per target using properties 2020-11-06 17:25:19 +00:00
Hugues Kamba c8b4822ed7 CMake: Remove toolchain module dependency on cpu core CMake modules
Set `CMAKE_SYSTEM_PROCESSOR` in toolchain.cmake based on
`MBED_CPU_CORE`.
This information is needed by the ARM toolchain (and possibly other
toolchains), it therefore makes sense to set in `toolchain.cmake`.
2020-11-06 17:25:19 +00:00
Martin Kojtal 8b3cec2fa4 Update cmake/toolchain.cmake
Co-authored-by: Hugues Kamba <41612201+hugueskamba@users.noreply.github.com>
2020-11-06 17:25:18 +00:00
Martin Kojtal 57f39aed01 CMake toolchain: fix options comment
Co-authored-by: Hugues Kamba <41612201+hugueskamba@users.noreply.github.com>
2020-11-06 17:25:18 +00:00
Martin Kojtal 90e5d3aa35 CMake toolchain: clear flags to be able to overwrite them
As Mbed uses different optimizations levels, we should be able to overwrite this via toolchain file.
2020-11-06 17:25:18 +00:00
Hugues Kamba 1b52415336 CMake: Move MBED_STUDIO_ARM_COMPILER to ARM.cmake module
As its name implies, the flag is specific to the ARM toolchain.
2020-11-06 17:25:18 +00:00
Hugues Kamba ef11e06cfb CMake: Remove add_executable
Instead provide functions to set the pre and post link commands.
2020-11-06 17:25:17 +00:00
Martin Kojtal ecfee28517 CMake: move env to toolchain file (#13369)
Toolchain sets target toolchain related settings that were in env. We do not need env cmake.
See https://cmake.org/cmake/help/v3.8/manual/cmake-toolchains.7.html for details
2020-11-06 17:25:17 +00:00
Devaraj Ranganna 10f421258d cmake: Using Arm compiler from Mbed Studio
Added a command line option `-DMBEDIDE=ON` which allows using Arm
compiler shipped with Mbed Studio on local machines.

Signed-off-by: Devaraj Ranganna <devaraj.ranganna@arm.com>
2020-11-06 17:25:16 +00:00
Hugues Kamba 6dc5f5a582 CMake: Add CMake scripts 2020-11-06 17:25:14 +00:00