FetchContent_Declare(
result-cpp
QUIET
GIT_REPOSITORY https://github.com/Dup4/result-cpp.git
GIT_TAG v{x.y.z} # Where `x.y.z` is the release version you want to use.
)
git_repository(
name = "result-cpp",
remote = "https://github.com/Dup4/result-cpp.git",
tag = "v{x.y.z}", # Where `x.y.z` is the release version you want to use.
)
See the usage in the unit test