-
Notifications
You must be signed in to change notification settings - Fork 190
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
fix: use shorthand syntax in examples
- Loading branch information
Showing
1 changed file
with
5 additions
and
14 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -403,12 +403,8 @@ CPMAddPackage("gh:jbeder/yaml-cpp#[email protected]") | |
### [nlohmann/json](https://github.com/nlohmann/json) | ||
|
||
```cmake | ||
CPMAddPackage( | ||
NAME nlohmann_json | ||
VERSION 3.9.1 | ||
GITHUB_REPOSITORY nlohmann/json | ||
OPTIONS | ||
"JSON_BuildTests OFF" | ||
CPMAddPackage("gh:nlohmann/[email protected]" | ||
OPTIONS "JSON_BuildTests OFF" | ||
) | ||
``` | ||
|
||
|
@@ -438,8 +434,7 @@ For a working example of using CPM to download and configure the Boost C++ Libra | |
```cmake | ||
# the install option has to be explicitly set to allow installation | ||
CPMAddPackage( | ||
GITHUB_REPOSITORY jarro2783/cxxopts | ||
VERSION 2.2.1 | ||
URI "gh:jarro2783/[email protected]" | ||
OPTIONS "CXXOPTS_BUILD_EXAMPLES NO" "CXXOPTS_BUILD_TESTS NO" "CXXOPTS_ENABLE_INSTALL YES" | ||
) | ||
``` | ||
|
@@ -448,9 +443,7 @@ CPMAddPackage( | |
|
||
```cmake | ||
CPMAddPackage( | ||
NAME benchmark | ||
GITHUB_REPOSITORY google/benchmark | ||
VERSION 1.5.2 | ||
URI "gh:google/[email protected]" | ||
OPTIONS "BENCHMARK_ENABLE_TESTING Off" | ||
) | ||
|
@@ -464,9 +457,7 @@ endif() | |
|
||
```cmake | ||
CPMAddPackage( | ||
NAME lua | ||
GIT_REPOSITORY https://github.com/lua/lua.git | ||
VERSION 5.3.5 | ||
URI "gh:lua/[email protected]" | ||
DOWNLOAD_ONLY YES | ||
) | ||
|