Skip to content
Snippets Groups Projects
Commit bb4f27fe authored by Daniel Hornung's avatar Daniel Hornung
Browse files

DOC: Extended previous commit.

parent 4458d8bc
No related branches found
No related tags found
2 merge requests!33Release 0.1,!30Debug build
Pipeline #14810 failed
...@@ -6,7 +6,7 @@ ...@@ -6,7 +6,7 @@
## Build ## Build
We use [cmake](https://cmake.org) as build tool. We use [cmake](https://cmake.org) as build tool and assume gcc as compiler.
0. clone/update the subrepo `git submodule update --init proto` 0. clone/update the subrepo `git submodule update --init proto`
1. `mkdir build && cd build` 1. `mkdir build && cd build`
...@@ -25,7 +25,7 @@ command (3.). ...@@ -25,7 +25,7 @@ command (3.).
### How to build on MacOS ### How to build on MacOS
Instead of the above conan command (2.) use If you use apple-clang as the compiler: Instead of the above conan command (2.) use
2. `conan install .. -s "compiler.cppstd=17"` 2. `conan install .. -s "compiler.cppstd=17"`
...@@ -88,7 +88,8 @@ standard manually by `conan install .. [other options] -s ...@@ -88,7 +88,8 @@ standard manually by `conan install .. [other options] -s
For the tests there is a slightly different setup required (with option `-D CMAKE_BUILD_TYPE=Debug`) For the tests there is a slightly different setup required (with option `-D CMAKE_BUILD_TYPE=Debug`)
1. `mkdir build && cd build/` 1. `mkdir build && cd build/`
2. `conan install .. ` (with gcc, append ` -s "compiler.libcxx=libstdc++11"`, with apple-clang, append ` -s compiler.cppstd=17`) 2. `conan install .. ` (with gcc, append ` -s "compiler.libcxx=libstdc++11"`, with apple-clang,
append ` -s compiler.cppstd=17`)
3. `cmake -B . -D CMAKE_BUILD_TYPE=Debug ..` 3. `cmake -B . -D CMAKE_BUILD_TYPE=Debug ..`
* If your clang-format version is too old, formatting, linting etc. can be skipped: * If your clang-format version is too old, formatting, linting etc. can be skipped:
`cmake -B . -D CMAKE_BUILD_TYPE=Debug -D SKIP_LINTING=ON ..` `cmake -B . -D CMAKE_BUILD_TYPE=Debug -D SKIP_LINTING=ON ..`
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment