diff options
author | Matt McCormick <matt.mccormick@kitware.com> | 2012-06-08 22:29:34 (GMT) |
---|---|---|
committer | David Cole <david.cole@kitware.com> | 2012-11-03 21:18:14 (GMT) |
commit | d0758290e78046ac0d8cf91e3456369cc4c43999 (patch) | |
tree | f2ec2dd7909ac9b9a817b728a02d2b4758194f4e /Tests/ExternalProject/CMakeLists.txt | |
parent | d39bd3e6a8dc89637197c305102724c337b7fb0f (diff) | |
download | CMake-d0758290e78046ac0d8cf91e3456369cc4c43999.zip CMake-d0758290e78046ac0d8cf91e3456369cc4c43999.tar.gz CMake-d0758290e78046ac0d8cf91e3456369cc4c43999.tar.bz2 |
ExternalProject: Only run 'git fetch' when required.
In the current default update step for Git under the ExternalProject_Add
command, a 'git fetch' is always performed, followed by a 'git checkout' and
'git submodule update --recursive'. However, a 'git fetch' can be time
consuming and requires a network connection.
To save time, we look at the current checked out hash, and only perform the
fetch if required. This is performed in a CMake script so we can handle
the conditional logic in a cross platform manner.
Diffstat (limited to 'Tests/ExternalProject/CMakeLists.txt')
0 files changed, 0 insertions, 0 deletions