Skip to content

Commit e1e3872

Browse files
Merge pull request #93 from madronalabs/build-docs
make bash build examples work
2 parents 1d42436 + 9946dd1 commit e1e3872

File tree

1 file changed

+5
-3
lines changed

1 file changed

+5
-3
lines changed

README.md

Lines changed: 5 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -2317,7 +2317,7 @@ This will build the examples in the `build/examples` directory:
23172317

23182318
```bash
23192319
mkdir build
2320-
cmake -version
2320+
cd build
23212321
cmake .. -DCMAKE_BUILD_TYPE=Release -DCMAKE_CXX_FLAGS="-O2"
23222322
cmake --build . -j 2 --config Release
23232323
```
@@ -2330,7 +2330,7 @@ This will install Matplot++ on your system:
23302330

23312331
```bash
23322332
mkdir build
2333-
cmake -version
2333+
cd build
23342334
cmake .. -DCMAKE_BUILD_TYPE=Release -DCMAKE_CXX_FLAGS="-O2" -DBUILD_EXAMPLES=OFF -DBUILD_TESTS=OFF
23352335
cmake --build . -j 2 --config Release
23362336
cmake --install .
@@ -2344,7 +2344,7 @@ This will create the binary packages you can use to install Matplot++ on your sy
23442344

23452345
```bash
23462346
mkdir build
2347-
cmake -version
2347+
cd build
23482348
cmake .. -DCMAKE_BUILD_TYPE=Release -DCMAKE_CXX_FLAGS="-O2" -DBUILD_EXAMPLES=OFF -DBUILD_TESTS=OFF
23492349
cmake --build . -j 2 --config Release
23502350
cmake --install .
@@ -2353,6 +2353,8 @@ cpack .
23532353

23542354
On windows, replace `-O2` with `/O2`. You might need `sudo` for this last command.
23552355

2356+
2357+
23562358
### CMake targets
23572359

23582360
#### Find it as a CMake Package

0 commit comments

Comments
 (0)