Skip to content

Commit

Permalink
Putting -DCMAKE_BUILD_TYPE=Release in the readme
Browse files Browse the repository at this point in the history
...although is the default if no build type is specified
  • Loading branch information
leoisl committed Jul 16, 2022
1 parent 9e8164a commit 537bb43
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -49,7 +49,7 @@ To download and install COBS run:
git clone --recursive https://github.com/bingmann/cobs.git
mkdir cobs/build
cd cobs/build
cmake ..
cmake -DCMAKE_BUILD_TYPE=Release ..
make -j4
```
and optionally run `make test` to check the build.
Expand All @@ -58,7 +58,7 @@ and optionally run `make test` to check the build.

If the above does not work and you are using `OS X`, install `gcc` and `g++` and try switching the `cmake` command to:
```
cmake -DCMAKE_C_COMPILER=gcc-11 -DCMAKE_CXX_COMPILER=g++-11 ..
cmake -DCMAKE_BUILD_TYPE=Release -DCMAKE_C_COMPILER=gcc-11 -DCMAKE_CXX_COMPILER=g++-11 ..
```

On `OS X`, `COBS` was tested with `cmake v3.22.3`, `make v3.81`, `gcc/g++-11 v11.2.0`.
Expand Down

0 comments on commit 537bb43

Please sign in to comment.