I don’t have a CMakeLists in the root, I’m working in one project and e.g. start from app/app1.
Neither my root directory of applications (app
) contains a CMakeLists.txt
file. To create a new ~/app/app1
program I navigate (cd
) to the ~/app
directory and then I create a new project, as suggested by the CLI2 documentation, by using the command:
mbed-tools new -c app1
...
The shared mbed-os
directory could be located for example in the ~/sys
directory.
yes, because the projects CMakeList needs to be modified to use a different mbed-os path, then it will not matter if Linux or Windows.
I tried to change the mbed-os
path by using the --mbed-os-path
option, as suggested in the CLI2 documentation and also manually by editing the CMakeLists.txt
file. Unfortunately, neither method worked (on Linux). However, when I kept the CMakeLists.txt
file (generated by the mbed-tools new -c app1
command) unchanged and created a symbolic link to the ~/sys/mbed-os
directory then the build worked.