ExternalProject: note the default of GIT_TAG being master

Reported on Discourse:

    https://discourse.cmake.org/t/fetchcontent-makeavailable-invalid-reference-master/6386
This commit is contained in:
Ben Boeckel
2022-09-02 08:20:53 -04:00
parent 6dd6f91117
commit 2a21555ea7

View File

@@ -301,6 +301,9 @@ External Project Definition
If ``GIT_SHALLOW`` is enabled then ``GIT_TAG`` works only with
branch names and tags. A commit hash is not allowed.
Note that if not provided, ``GIT_TAG`` defaults to ``master``, not the
default Git branch name.
``GIT_REMOTE_NAME <name>``
The optional name of the remote. If this option is not specified, it
defaults to ``origin``.