Skip to content

Commit

Permalink
fix: use shorthand syntax in examples
Browse files Browse the repository at this point in the history
  • Loading branch information
SGSSGene committed Nov 7, 2024
1 parent f4d231f commit 121efaf
Showing 1 changed file with 5 additions and 14 deletions.
19 changes: 5 additions & 14 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -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"
)
```

Expand Down Expand Up @@ -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"
)
```
Expand All @@ -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"
)
Expand All @@ -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
)
Expand Down

0 comments on commit 121efaf

Please sign in to comment.