Split instructions for Ubuntu 20.04 and 22.04

Signed-off-by: Jeroen Hoek <mail@jeroenhoek.nl>
This commit is contained in:
Jeroen Hoek 2022-06-07 08:02:55 +02:00 committed by Viktor Govako
parent 9392aca0b0
commit 97b3e93297

View file

@ -84,9 +84,8 @@ Installing *ccache* can speed up active development.
_Ubuntu 20.04, 22.04:_
```bash
sudo apt-get update && sudo apt-get install -y \
sudo apt update && sudo apt install -y \
build-essential \
cmake \
clang \
ninja-build \
python3 \
@ -100,6 +99,18 @@ sudo apt-get update && sudo apt-get install -y \
zlib1g-dev
```
For Ubuntu 20.04 the version of `cmake` that ships with Ubuntu is too old; a more recent version can be installed using `snap`:
```bash
sudo snap install --classic cmake
```
For Ubuntu 22.04 `cmake` may be installed using `snap` as well, or alternatively by using `apt`:
```bash
sudo apt install -y cmake
```
_Fedora:_
```bash