Skip to content

Commit 4643024

Browse files
committed
Quote arguments in example
1 parent 0b622e4 commit 4643024

File tree

1 file changed

+5
-6
lines changed

1 file changed

+5
-6
lines changed

docs/+current/index.md

Lines changed: 5 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -26,7 +26,7 @@ set(RSP_CMAKE_SCRIPTS_VERSION "0.1.0")
2626
2727
CPMAddPackage(
2828
NAME "rsp-cmake-scripts"
29-
GIT_TAG "${RSP_CMAKE_SCRIPTS_VERSION}"
29+
VERSION "${RSP_CMAKE_SCRIPTS_VERSION}"
3030
GITHUB_REPOSITORY "rsps/cmake-scripts"
3131
)
3232
```
@@ -40,12 +40,11 @@ set(RSP_CMAKE_SCRIPTS_VERSION "0.1.0")
4040
4141
include(FetchContent)
4242
FetchContent_Declare(
43-
rsp-cmake-scripts
44-
GIT_REPOSITORY https://github.com/rsps/cmake-scripts
45-
GIT_TAG ${RSP_CMAKE_SCRIPTS_VERSION}
46-
FIND_PACKAGE_ARGS NAMES rsp-cmake-scripts
43+
"rsp-cmake-scripts"
44+
GIT_REPOSITORY "https://github.com/rsps/cmake-scripts"
45+
GIT_TAG "${RSP_CMAKE_SCRIPTS_VERSION}"
4746
)
48-
FetchContent_MakeAvailable(rsp-cmake-scripts)
47+
FetchContent_MakeAvailable("rsp-cmake-scripts")
4948
```
5049

5150
!!! note "Note"

0 commit comments

Comments
 (0)