Add CPM_RESET (#4)

* added CPM_RESET option

* update readme

* Update README.md
This commit is contained in:
Lars Melchior
2019-04-09 20:01:27 +02:00
committed by GitHub
parent f8e571e416
commit e368fce6c3
4 changed files with 23 additions and 6 deletions

View File

@@ -29,12 +29,16 @@ add_executable(my-parser my-parser.cpp)
target_link_libraries(cpm-test LarsParser)
```
# Update packages
To update packages, run cmake with the additional option `-DCPM_RESET=ON`. To keep the project working offline after the update, set `-DCPM_RESET=OFF` afterwards.
# Installation
To add CPM to your current project, copy the scripts in the `cmake` directory into you current project project. The command below will perform this automatically.
```bash
wget -qO- https://github.com/TheLartians/CPM/releases/download/v0.2/cmake.zip | bsdtar -xvf-
wget -qO- https://github.com/TheLartians/CPM/releases/download/v0.3/cmake.zip | bsdtar -xvf-
```
# Limitations