Skip to content

Commit e1ae7c2

Browse files
committed
doc: adjust README accordingly to PR-Review
1 parent 1f05115 commit e1ae7c2

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

README.md

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -65,7 +65,6 @@ Afterwards, any targets defined in the dependency can be used directly.
6565

6666
```cmake
6767
CPMAddPackage(
68-
URI # shorthand including repo, name, version and tag (see shorthand syntax)
6968
NAME # The unique name of the dependency (should be the exported target's name)
7069
VERSION # The minimum version of the dependency (optional, defaults to 0)
7170
PATCHES # Patch files to be applied sequentially using patch and PATCH_OPTIONS (optional)
@@ -115,9 +114,10 @@ CPMAddPackage("https://example.com/my-package-1.2.3.zip#MD5=68e20f674a48be38d60e
115114
CPMAddPackage("https://example.com/my-package.zip@1.2.3")
116115
```
117116

118-
Additionally, the shorthand syntax can be used with the long version, using the `URI` specifier.
117+
Additionally, if needed, extra arguments can be provided by using the shorthand syntax with the `URI` specifier.
119118
```cmake
120-
CPMAddPackage(URI "gh:nlohmann/json@3.9.1"
119+
CPMAddPackage(
120+
URI "gh:nlohmann/json@3.9.1"
121121
OPTIONS "JSON_BuildTests OFF"
122122
)
123123
```

0 commit comments

Comments
 (0)