Skip to content

Commit

Permalink
Fix GIT_TAG field in cmake integration example
Browse files Browse the repository at this point in the history
  • Loading branch information
Trompettesib authored and jbeder committed Jan 4, 2024
1 parent c28295b commit 9eb1142
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -56,9 +56,11 @@ You can use for example FetchContent :
```cmake
include(FetchContent)
FetchContent_Declare(yaml-cpp
FetchContent_Declare(
yaml-cpp
GIT_REPOSITORY https://github.com/jbeder/yaml-cpp.git
GIT_TAG 1b50109f7bea60bd382d8ea7befce3d2bd67da5f) # The latest yaml-cpp commit at the time of writing.
GIT_TAG <tag_name> # Can be a tag (yaml-cpp-x.x.x), a commit hash, or a branch name (master)
)
FetchContent_GetProperties(yaml-cpp)
if(NOT yaml-cpp_POPULATED)
Expand Down

0 comments on commit 9eb1142

Please sign in to comment.