Skip to content

Commit

Permalink
README.md: Update build instructions for cmake
Browse files Browse the repository at this point in the history
  • Loading branch information
robert-scheck authored and sreimers committed Oct 2, 2022
1 parent 866e088 commit fb061a9
Showing 1 changed file with 9 additions and 6 deletions.
15 changes: 9 additions & 6 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -39,8 +39,9 @@ installed before building.
### Build with debug enabled

```
$ make
$ sudo make install
$ cmake -B build
$ cmake --build build -j
$ sudo cmake --install build
$ sudo ldconfig
```

Expand All @@ -57,16 +58,18 @@ $ sudo ldconfig
### Build with release

```
$ make RELEASE=1
$ sudo make RELEASE=1 install
$ cmake -B build -DCMAKE_BUILD_TYPE=Release
$ cmake --build build -j
$ sudo cmake --install build
$ sudo ldconfig
```

### Build with clang compiler

```
$ make CC=clang
$ sudo make CC=clang install
$ cmake -B build -DCMAKE_C_COMPILER=clang -DCMAKE_CXX_COMPILER=clang++
$ cmake --build build -j
$ sudo cmake --install build
$ sudo ldconfig
```

Expand Down

0 comments on commit fb061a9

Please sign in to comment.