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
1. Single-config generators (e.g. default = `Unix Makefiles`; note that they just ignore the `--config` flag):
28
28
29
-
```bash
30
-
cmake -B build -DCMAKE_BUILD_TYPE=Debug
31
-
cmake --build build
32
-
```
29
+
```bash
30
+
cmake -B build -DCMAKE_BUILD_TYPE=Debug
31
+
cmake --build build
32
+
```
33
33
34
34
2. Multi-config generators (`-G` param set to Visual Studio, XCode...):
35
35
36
-
```bash
37
-
cmake -B build -G "Xcode"
38
-
cmake --build build --config Debug
39
-
```
36
+
```bash
37
+
cmake -B build -G "Xcode"
38
+
cmake --build build --config Debug
39
+
```
40
40
41
41
For more details and a list of supported generators, see the [CMake documentation](https://cmake.org/cmake/help/latest/manual/cmake-generators.7.html).
42
+
- For static builds, add `-DBUILD_SHARED_LIBS=OFF`:
43
+
```
44
+
cmake -B build -DBUILD_SHARED_LIBS=OFF
45
+
cmake --build build --config Release
46
+
```
42
47
43
48
- Building for Windows (x86, x64 and arm64) with MSVC or clang as compilers:
44
49
- Install Visual Studio 2022, e.g. via the [Community Edition](https://visualstudio.microsoft.com/de/vs/community/). In the installer, select at least the following options (this also automatically installs the required additional tools like CMake,...):
0 commit comments