You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: docs/tools/CLI/cli-create.md
+12-6Lines changed: 12 additions & 6 deletions
Original file line number
Diff line number
Diff line change
@@ -82,24 +82,30 @@ You can create plain (empty) programs, without either Mbed OS 5 or Mbed OS 2, by
82
82
83
83
### Managing multiple Mbed projects
84
84
85
-
You can create multiple Mbed projects and use the same Mbed OS library directory for each of these projects with the following commands:
85
+
By default, a copy of `mbed-os` is checked out into each of your active Mbed project directories.
86
+
87
+
The configuration option `MBED_OS_DIR` allows you to create multiple Mbed projects and use the same Mbed OS library directory for each of these projects.
88
+
89
+
Set the `MBED_OS_DIR` configuration option as an absolute path to a directory containing an implementation of `mbed-os`.
[mbed] /absolute/path/to/project/dir/mbed-os now set as global MBED_OS_DIR
92
98
$ mbed new project1
93
99
[mbed] Creating new program "project1" (git)
94
100
$ mbed new project2
95
101
[mbed] Creating new program "project2" (git)
96
102
```
97
103
98
-
Add your `main.cpp` file and other project files to the `project1` and `project2` directories. Then compile each project from the root `<projects directory>` with the following example commands:
104
+
Add your `main.cpp` file and other project files to the `project1` and `project2` directories. Then compile each project from the root `/absolute/path/to/project/dir` with the following example commands:
0 commit comments