@@ -2319,10 +2319,12 @@ This will build the examples in the `build/examples` directory:
2319
2319
mkdir build
2320
2320
cd build
2321
2321
cmake .. -DCMAKE_BUILD_TYPE=Release -DCMAKE_CXX_FLAGS=" -O2"
2322
- cmake --build . -j 2 --config Release
2322
+ cmake --build . --parallel 2 --config Release
2323
2323
```
2324
2324
2325
- On windows, replace ` -O2 ` with ` /O2 ` .
2325
+ * Replace ` --parallel 2 ` with ` --parallel <number of cores in your machine> `
2326
+ * On Windows, replace ` -O2 ` with ` /O2 `
2327
+ * On Linux, you might need ` sudo ` for this last command
2326
2328
2327
2329
#### Installing Matplot++ from Source
2328
2330
@@ -2332,11 +2334,13 @@ This will install Matplot++ on your system:
2332
2334
mkdir build
2333
2335
cd build
2334
2336
cmake .. -DCMAKE_BUILD_TYPE=Release -DCMAKE_CXX_FLAGS=" -O2" -DBUILD_EXAMPLES=OFF -DBUILD_TESTS=OFF
2335
- cmake --build . -j 2 --config Release
2337
+ cmake --build . --parallel 2 --config Release
2336
2338
cmake --install .
2337
2339
```
2338
2340
2339
- On windows, replace ` -O2 ` with ` /O2 ` . You might need ` sudo ` for this last command.
2341
+ * Replace ` --parallel 2 ` with ` --parallel <number of cores in your machine> `
2342
+ * On Windows, replace ` -O2 ` with ` /O2 `
2343
+ * On Linux, you might need ` sudo ` for this last command
2340
2344
2341
2345
#### Building the packages
2342
2346
@@ -2346,14 +2350,14 @@ This will create the binary packages you can use to install Matplot++ on your sy
2346
2350
mkdir build
2347
2351
cd build
2348
2352
cmake .. -DCMAKE_BUILD_TYPE=Release -DCMAKE_CXX_FLAGS=" -O2" -DBUILD_EXAMPLES=OFF -DBUILD_TESTS=OFF
2349
- cmake --build . -j 2 --config Release
2353
+ cmake --build . --parallel 2 --config Release
2350
2354
cmake --install .
2351
2355
cpack .
2352
2356
```
2353
2357
2354
- On windows, replace ` -O2 ` with ` /O2 ` . You might need ` sudo ` for this last command.
2355
-
2356
-
2358
+ * Replace ` --parallel 2 ` with ` --parallel <number of cores in your machine> `
2359
+ * On Windows, replace ` -O2 ` with ` /O2 `
2360
+ * On Linux, you might need ` sudo ` for this last command
2357
2361
2358
2362
### CMake targets
2359
2363
0 commit comments