mirror of
https://github.com/cpm-cmake/CPM.cmake.git
synced 2025-11-24 05:08:01 -05:00
Compare commits
2 Commits
| Author | SHA1 | Date | |
|---|---|---|---|
|
|
96c268827b | ||
|
|
dad37fbe4e |
30
README.md
30
README.md
@@ -274,15 +274,10 @@ See the [wiki](https://github.com/cpm-cmake/CPM.cmake/wiki/More-Snippets) for mo
|
|||||||
CPMAddPackage("gh:catchorg/Catch2@2.5.0")
|
CPMAddPackage("gh:catchorg/Catch2@2.5.0")
|
||||||
```
|
```
|
||||||
|
|
||||||
### [Boost ](https://github.com/boostorg/boost)
|
### [Range-v3](https://github.com/ericniebler/range-v3)
|
||||||
|
|
||||||
```CMake
|
```Cmake
|
||||||
CPMAddPackage(
|
CPMAddPackage("gh:ericniebler/range-v3#0.11.0")
|
||||||
NAME Boost
|
|
||||||
VERSION 1.77.0
|
|
||||||
GITHUB_REPOSITORY "boostorg/boost"
|
|
||||||
GIT_TAG "boost-1.77.0"
|
|
||||||
)
|
|
||||||
```
|
```
|
||||||
|
|
||||||
### [Yaml-cpp](https://github.com/jbeder/yaml-cpp)
|
### [Yaml-cpp](https://github.com/jbeder/yaml-cpp)
|
||||||
@@ -292,12 +287,6 @@ CPMAddPackage(
|
|||||||
CPMAddPackage("gh:jbeder/yaml-cpp#yaml-cpp-0.6.3@0.6.3")
|
CPMAddPackage("gh:jbeder/yaml-cpp#yaml-cpp-0.6.3@0.6.3")
|
||||||
```
|
```
|
||||||
|
|
||||||
### [Range-v3](https://github.com/ericniebler/range-v3)
|
|
||||||
|
|
||||||
```Cmake
|
|
||||||
CPMAddPackage("gh:ericniebler/range-v3#0.11.0")
|
|
||||||
```
|
|
||||||
|
|
||||||
### [nlohmann/json](https://github.com/nlohmann/json)
|
### [nlohmann/json](https://github.com/nlohmann/json)
|
||||||
|
|
||||||
```cmake
|
```cmake
|
||||||
@@ -309,6 +298,19 @@ CPMAddPackage(
|
|||||||
)
|
)
|
||||||
```
|
```
|
||||||
|
|
||||||
|
### [Boost ](https://github.com/boostorg/boost)
|
||||||
|
|
||||||
|
```CMake
|
||||||
|
# boost is a huge project and will take a while to download
|
||||||
|
# using `CPM_SOURCE_CACHE` is strongly recommended
|
||||||
|
CPMAddPackage(
|
||||||
|
NAME Boost
|
||||||
|
VERSION 1.77.0
|
||||||
|
GITHUB_REPOSITORY "boostorg/boost"
|
||||||
|
GIT_TAG "boost-1.77.0"
|
||||||
|
)
|
||||||
|
```
|
||||||
|
|
||||||
### [cxxopts](https://github.com/jarro2783/cxxopts)
|
### [cxxopts](https://github.com/jarro2783/cxxopts)
|
||||||
|
|
||||||
```cmake
|
```cmake
|
||||||
|
|||||||
@@ -548,6 +548,7 @@ function(CPMAddPackage)
|
|||||||
EXCLUDE_FROM_ALL "${CPM_ARGS_EXCLUDE_FROM_ALL}"
|
EXCLUDE_FROM_ALL "${CPM_ARGS_EXCLUDE_FROM_ALL}"
|
||||||
OPTIONS "${CPM_ARGS_OPTIONS}"
|
OPTIONS "${CPM_ARGS_OPTIONS}"
|
||||||
SOURCE_SUBDIR "${CPM_ARGS_SOURCE_SUBDIR}"
|
SOURCE_SUBDIR "${CPM_ARGS_SOURCE_SUBDIR}"
|
||||||
|
DOWNLOAD_ONLY "${DOWNLOAD_ONLY}"
|
||||||
FORCE True
|
FORCE True
|
||||||
)
|
)
|
||||||
cpm_export_variables(${CPM_ARGS_NAME})
|
cpm_export_variables(${CPM_ARGS_NAME})
|
||||||
|
|||||||
Reference in New Issue
Block a user