mirror of
https://github.com/cpm-cmake/CPM.cmake.git
synced 2026-02-06 14:55:57 +08:00
Add CPM_RESET (#4)
* added CPM_RESET option * update readme * Update README.md
This commit is contained in:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user