fix some readme errors
This commit is contained in:
parent
bc3af305ea
commit
f1e415241a
1 changed files with 7 additions and 7 deletions
14
README.md
14
README.md
|
@ -31,7 +31,7 @@ make // Rerun this every time you change source
|
|||
I can't provide information for all distributions, but in general it should be like the following:
|
||||
|
||||
Linux systems:
|
||||
- `boost` should be available as a system package via your package manager.
|
||||
- `boost` and `cmake`: should be available as a system package via your package manager.
|
||||
- `readline` should be installed already, otherwise try your package manager as well.
|
||||
- `cpr` is a bit more complicated:
|
||||
- On Arch, there is a package in the [AUR](https://aur.archlinux.org/packages/cpr).
|
||||
|
@ -41,23 +41,23 @@ Linux systems:
|
|||
|
||||
Mac OS:
|
||||
- I recommend installing packages with [Homebrew](https://brew.sh).
|
||||
- So `brew install boost cpr readline` should do the job.
|
||||
- So `brew install boost cpr readline cmake` should do the job.
|
||||
|
||||
Windows:
|
||||
- Currently, I have no idea regarding windows, sorry for that.
|
||||
|
||||
### Installing cpr as a local CMAKE dependency
|
||||
- There is also the option to install `cpr` directly as a dependency through `CMake`.
|
||||
For this, replace the line
|
||||
For this, in `CMakeLists.txt`, replace the line
|
||||
```
|
||||
find_package(cpr)
|
||||
```
|
||||
with the lines
|
||||
```
|
||||
include(FetchContent)
|
||||
FetchContent_Declare(cpr GIT_REPOSITORY https://github.com/libcpr/cpr.git
|
||||
GIT_TAG 2553fc41450301cd09a9271c8d2c3e0cf3546b73)
|
||||
FetchContent_MakeAvailable(cpr)
|
||||
include(FetchContent)
|
||||
FetchContent_Declare(cpr GIT_REPOSITORY https://github.com/libcpr/cpr.git
|
||||
GIT_TAG 2553fc41450301cd09a9271c8d2c3e0cf3546b73)
|
||||
FetchContent_MakeAvailable(cpr)
|
||||
```
|
||||
where you replace the git tag with the latest release tag from [Github](https://github.com/libcpr/cpr/releases).
|
||||
You can find details on this installation method on the [cpr github page](https://github.com/lipcpr/cpr) as well.
|
||||
|
|
Loading…
Reference in a new issue