summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorCraig Scott <craig.scott@crascit.com>2022-09-04 13:35:06 (GMT)
committerKitware Robot <kwrobot@kitware.com>2022-09-04 13:35:15 (GMT)
commit9bbd5f71e9248ac4f6e7be750366932191e87373 (patch)
treeb7dbb6589179da0f8ea7a1e4cd3a8c7f2f3a5bdd
parent61d434d6a7880b7e13e24b666c1115546d6b6756 (diff)
parent2a21555ea7861f640931b1fd2458f6f7bdb3253e (diff)
downloadCMake-9bbd5f71e9248ac4f6e7be750366932191e87373.zip
CMake-9bbd5f71e9248ac4f6e7be750366932191e87373.tar.gz
CMake-9bbd5f71e9248ac4f6e7be750366932191e87373.tar.bz2
Merge topic 'ExternalProject-default-git-tag'
2a21555ea7 ExternalProject: note the default of `GIT_TAG` being `master` Acked-by: Kitware Robot <kwrobot@kitware.com> Merge-request: !7631
-rw-r--r--Modules/ExternalProject.cmake3
1 files changed, 3 insertions, 0 deletions
diff --git a/Modules/ExternalProject.cmake b/Modules/ExternalProject.cmake
index 2520cf3..9306ce6 100644
--- a/Modules/ExternalProject.cmake
+++ b/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``.