浏览代码

Merge topic 'ExternalProject-default-git-tag' into release-3.24

2a21555ea7 ExternalProject: note the default of `GIT_TAG` being `master`

Acked-by: Kitware Robot <[email protected]>
Merge-request: !7631
Craig Scott 3 年之前
父节点
当前提交
0e7bb4e783
共有 1 个文件被更改,包括 3 次插入0 次删除
  1. 3 0
      Modules/ExternalProject.cmake

+ 3 - 0
Modules/ExternalProject.cmake

@@ -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``.