ecbuild_git

Manages an external Git repository.

ecbuild_git( PROJECT <name>
             DIR <directory>
             URL <giturl>
             [ BRANCH <gitbranch> | TAG <gittag> ]
             [ UPDATE | NOREMOTE ]
             [ MANUAL ]
             [ RECURSIVE ] )

Options

PROJECT : required
project name for the Git repository to be managed
DIR : required
directory to clone the repository into (can be relative)
URL : required
Git URL of the remote repository to clone (see git help clone)
BRANCH : optional, cannot be combined with TAG
Git branch to check out
TAG : optional, cannot be combined with BRANCH
Git tag or commit id to check out
UPDATE : optional, requires BRANCH, cannot be combined with NOREMOTE
Create a CMake target update to fetch changes from the remote repository
NOREMOTE : optional, cannot be combined with UPDATE
Do not fetch changes from the remote repository
MANUAL : optional
Do not automatically switch branches or tags
RECURSIVE : optional
Do a recursive fetch or update