[CMake] ExternalProject git checkout --depth=1 ???

Yngve Inntjore Levinsen yngve.levinsen at gmail.com
Fri Jan 9 08:31:17 EST 2015


Hi,

Have a look here: http://www.cmake.org/Bug/view.php?id=15291

You should be able to use, for the time being, DOWNLOAD_COMMAND and 
UPDATE_COMMAND to achieve this. (have not tested myself)

Hope this helps.

Cheers,
Yngve

On 08/01/15 23:58, Kent Williams wrote:
> I'm building the Mozilla Spidermonkey JS interpreter as an 
> ExternalProject.
>
> So far so good, but I had a question/feature request:  Wouldn't it be 
> grand to be able to add --depth 1 to the git clone?  This is perfect 
> for grabbing giant repositories. Mozilla is more than 3 gigabytes with 
> a full clone, and a depth=1 checkout is a 1/3 that.
>
>
>
>

-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://public.kitware.com/pipermail/cmake/attachments/20150109/1d92b3c9/attachment.html>


More information about the CMake mailing list