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/4.0-migration-guide/repo-split.md
+48Lines changed: 48 additions & 0 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -7,6 +7,54 @@ The previous `.sln` and `.vcxproj` files are no longer distributed or generated.
7
7
See the `Compiling` section in README.md for instructions on building the Mbed TLS libraries and tests with CMake.
8
8
If you develop in Microsoft Visual Studio, you could either generate a Visual Studio solution using a CMake generator, or open the CMake project directly in Visual Studio.
9
9
10
+
### Translating Make commands to CMake
11
+
12
+
With the removal of GNU Make support, all build, test, and installation operations must now be performed using CMake.
13
+
This section provides a quick reference for translating common `make` commands into their CMake equivalents.
14
+
15
+
#### Basic build workflow
16
+
17
+
Run `cmake -S . -B build` once before building to configure the build and generate native build files (e.g., Makefiles) in the `build` directory.
18
+
This sets up an out-of-tree build, which is recommended.
|`make`|`cmake --build build`| Build the libraries, programs, and tests in the `build` directory. |
23
+
|`make test`|`ctest --test-dir build`| Run the tests produced by the previous build. |
24
+
|`make clean`|`cmake --build build --target clean`| Remove build artifacts produced by the previous build. |
25
+
|`make install`|`cmake --install build --prefix build/install`| Install the built libraries, headers, and tests to `build/install`. |
26
+
27
+
#### Building specific targets
28
+
29
+
Unless otherwise specified, the CMake command in the table below should be preceded by a `cmake -S . -B build` call to configure the build and generate build files in the `build` directory.
0 commit comments