File tree 1 file changed +3
-3
lines changed
1 file changed +3
-3
lines changed Original file line number Diff line number Diff line change @@ -65,7 +65,6 @@ Afterwards, any targets defined in the dependency can be used directly.
65
65
66
66
``` cmake
67
67
CPMAddPackage(
68
- URI # shorthand including repo, name, version and tag (see shorthand syntax)
69
68
NAME # The unique name of the dependency (should be the exported target's name)
70
69
VERSION # The minimum version of the dependency (optional, defaults to 0)
71
70
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
115
114
CPMAddPackage("https://example.com/my-package.zip@1.2.3")
116
115
```
117
116
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.
119
118
``` cmake
120
- CPMAddPackage(URI "gh:nlohmann/json@3.9.1"
119
+ CPMAddPackage(
120
+ URI "gh:nlohmann/json@3.9.1"
121
121
OPTIONS "JSON_BuildTests OFF"
122
122
)
123
123
```
You can’t perform that action at this time.
0 commit comments