CMake: Set TARGET_NAME macro
The C/C++ macro `TARGET_NAME` allows code to print the current
target's name, e.g. in error reporting when a fault happens. This
macro is exported by Mbed CLI 1 and used by mbed_error.c, so for
compatibility we let CMake set the same name of macro.

Fixes ARMmbed/mbed-tools#313
ls
1 parent be31d50 commit aca2d630ce831eb3482329daa881cd3c699d9f30
@Lingkai Dong Lingkai Dong authored on 1 Sep 2021
Showing 1 changed file
View
CMakeLists.txt