File tree Expand file tree Collapse file tree 3 files changed +12
-8
lines changed
docs/integration/build-from-source Expand file tree Collapse file tree 3 files changed +12
-8
lines changed Original file line number Diff line number Diff line change @@ -15,10 +15,12 @@ This will build the examples in the `build/examples` directory:
15
15
mkdir build
16
16
cd build
17
17
cmake .. -DCMAKE_BUILD_TYPE=Release -DCMAKE_CXX_FLAGS=" -O2"
18
- cmake --build . -j 2 --config Release
18
+ cmake --build . --parallel 2 --config Release
19
19
```
20
20
21
- On windows, replace ` -O2 ` with ` /O2 ` .
21
+ * Replace ` --parallel 2 ` with ` --parallel <number of cores in your machine> `
22
+ * On Windows, replace ` -O2 ` with ` /O2 `
23
+ * On Linux, you might need ` sudo ` for this last command
22
24
23
25
24
26
Original file line number Diff line number Diff line change @@ -15,14 +15,14 @@ This will create the binary packages you can use to install Matplot++ on your sy
15
15
mkdir build
16
16
cd build
17
17
cmake .. -DCMAKE_BUILD_TYPE=Release -DCMAKE_CXX_FLAGS=" -O2" -DBUILD_EXAMPLES=OFF -DBUILD_TESTS=OFF
18
- cmake --build . -j 2 --config Release
18
+ cmake --build . --parallel 2 --config Release
19
19
cmake --install .
20
20
cpack .
21
21
```
22
22
23
- On windows, replace ` -O2 ` with ` /O2 ` . You might need ` sudo ` for this last command.
24
-
25
-
23
+ * Replace ` --parallel 2 ` with ` --parallel <number of cores in your machine> `
24
+ * On Windows, replace ` -O2 ` with ` /O2 `
25
+ * On Linux, you might need ` sudo ` for this last command
26
26
27
27
28
28
Original file line number Diff line number Diff line change @@ -15,11 +15,13 @@ This will install Matplot++ on your system:
15
15
mkdir build
16
16
cd build
17
17
cmake .. -DCMAKE_BUILD_TYPE=Release -DCMAKE_CXX_FLAGS=" -O2" -DBUILD_EXAMPLES=OFF -DBUILD_TESTS=OFF
18
- cmake --build . -j 2 --config Release
18
+ cmake --build . --parallel 2 --config Release
19
19
cmake --install .
20
20
```
21
21
22
- On windows, replace ` -O2 ` with ` /O2 ` . You might need ` sudo ` for this last command.
22
+ * Replace ` --parallel 2 ` with ` --parallel <number of cores in your machine> `
23
+ * On Windows, replace ` -O2 ` with ` /O2 `
24
+ * On Linux, you might need ` sudo ` for this last command
23
25
24
26
25
27
You can’t perform that action at this time.
0 commit comments