From 537bb430b3a0b5aafa06c35c9b2b6a994dd09898 Mon Sep 17 00:00:00 2001 From: Leandro Ishi Date: Sat, 16 Jul 2022 12:59:54 +0100 Subject: [PATCH] Putting -DCMAKE_BUILD_TYPE=Release in the readme ...although is the default if no build type is specified --- README.md | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/README.md b/README.md index 5d3d1e4..f4d5187 100644 --- a/README.md +++ b/README.md @@ -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. @@ -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`.