ladislas
(Ladislas de Toldi)
February 10, 2022, 10:28pm
11
ollyob:
Solution
The name of the custom target in CMakeLists.txt must be in the exact format mbed-x-y-z
, and the custom target folder must be in the exact format TARGET_X_Y_Z
.
Detail
The CMake target must start with mbed-
, followed by the target name, in lower-case, separated by hyphens. The name of the custom target folder must start with TARGET_
, followed by the target name, in upper-case, separated by underscores.
Ah! I had the exact same issue recently and could not figure out why it would break. Reading the error messages and the code that generates it I eventually put the pieces together but it was a bad experience…
I created an issue for that: CMake - Custom hardware targets must start with "mbed-" prefix · Issue #15197 · ARMmbed/mbed-os · GitHub
1 Like