Skip to content

Commit 9eb1142

Browse files
Trompettesibjbeder
authored andcommitted
Fix GIT_TAG field in cmake integration example
1 parent c28295b commit 9eb1142

File tree

1 file changed

+4
-2
lines changed

1 file changed

+4
-2
lines changed

README.md

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -56,9 +56,11 @@ You can use for example FetchContent :
5656
```cmake
5757
include(FetchContent)
5858
59-
FetchContent_Declare(yaml-cpp
59+
FetchContent_Declare(
60+
yaml-cpp
6061
GIT_REPOSITORY https://github.com/jbeder/yaml-cpp.git
61-
GIT_TAG 1b50109f7bea60bd382d8ea7befce3d2bd67da5f) # The latest yaml-cpp commit at the time of writing.
62+
GIT_TAG <tag_name> # Can be a tag (yaml-cpp-x.x.x), a commit hash, or a branch name (master)
63+
)
6264
FetchContent_GetProperties(yaml-cpp)
6365
6466
if(NOT yaml-cpp_POPULATED)

0 commit comments

Comments
 (0)