FetchContent_Declare(
Project
GIT_REPOSITORY git@SERVER_ADDRESS:group/project.git
GIT_TAG f0f0cce200188f4bab4cc30cba18615bef2420c0
GIT_SHALLOW TRUE
)
FetchContent_MakeAvailable(Project)
I’ve also tried “GIT_TAG TAG_LABEL” and “GIT_TAG origin/TAG_LABEL”. The result is always the same:
...BUILD_DIR/_deps/project-src$ git status
On branch master
Your branch is up to date with 'origin/master'.
EDIT:
cmake version 3.22.1
OS: ubuntu 22.04