Skip to content

Commit f544dc6

Browse files
committed
Improve integration instructions
1 parent ef9ff56 commit f544dc6

File tree

1 file changed

+12
-8
lines changed

1 file changed

+12
-8
lines changed

README.md

Lines changed: 12 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -2319,10 +2319,12 @@ This will build the examples in the `build/examples` directory:
23192319
mkdir build
23202320
cd build
23212321
cmake .. -DCMAKE_BUILD_TYPE=Release -DCMAKE_CXX_FLAGS="-O2"
2322-
cmake --build . -j 2 --config Release
2322+
cmake --build . --parallel 2 --config Release
23232323
```
23242324

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
23262328

23272329
#### Installing Matplot++ from Source
23282330

@@ -2332,11 +2334,13 @@ This will install Matplot++ on your system:
23322334
mkdir build
23332335
cd build
23342336
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
23362338
cmake --install .
23372339
```
23382340

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
23402344

23412345
#### Building the packages
23422346

@@ -2346,14 +2350,14 @@ This will create the binary packages you can use to install Matplot++ on your sy
23462350
mkdir build
23472351
cd build
23482352
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
23502354
cmake --install .
23512355
cpack .
23522356
```
23532357

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
23572361

23582362
### CMake targets
23592363

0 commit comments

Comments
 (0)