From 9eb1142900096b9115ba2db2a521c76c117cacd9 Mon Sep 17 00:00:00 2001 From: Trompettesib Date: Thu, 4 Jan 2024 12:03:33 +0100 Subject: [PATCH] Fix GIT_TAG field in cmake integration example --- README.md | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/README.md b/README.md index f2ec061..a121b70 100644 --- a/README.md +++ b/README.md @@ -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 # 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)