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
+9-7Lines changed: 9 additions & 7 deletions
Original file line number
Diff line number
Diff line change
@@ -81,25 +81,27 @@ $ mbed new mbed-classic-program --mbedlib
81
81
You can create plain (empty) programs, without either Mbed OS 5 or Mbed OS 2, by using the `--create-only` option.
82
82
83
83
### Managing multiple Mbed projects
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:
84
+
By default there is a copy of mbed-os checked-out into each of your active mbed project directories.
85
+
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.
86
+
The ```MBED_OS_DIR``` configuration option should be set 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
94
$ mbed new project1
93
95
[mbed] Creating new program "project1" (git)
94
96
$ mbed new project2
95
97
[mbed] Creating new program "project2" (git)
96
98
```
97
99
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:
100
+
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