[cmake-developers] Fwd: [CMake] CTest GIT support does not properly update recursive submodules

Johan Björk phb at spotify.com
Sun Feb 20 11:29:15 EST 2011


missed the list. attached patch.


---------- Forwarded message ----------
From: Johan Björk <phb at spotify.com>
Date: Sun, Feb 20, 2011 at 5:28 PM
Subject: Re: [CMake] CTest GIT support does not properly update recursive
submodules
To: Brad King <brad.king at kitware.com>


Hi Brad,

Attached a small patch for --recursive support.

/Johan

On Fri, Feb 18, 2011 at 5:18 PM, Brad King <brad.king at kitware.com> wrote:

> On 02/18/2011 10:00 AM, Johan Björk wrote:
> > On Mon, Feb 7, 2011 at 7:14 PM, Brad King wrote:
> >     (1) Hard-code --recursive and add a check to error out if the Git
> >     version is not new enough.
> >
> > (2) seems both complicated and confusing for end users. I would vote for
> > (1) as if someone updates to the latest CMake on their machine, they
> > shouldn't have any issues in upgrading the git version in use.
>
> Basically this says that CTest will support only Git 1.6.5 or higher
> even for projects that have no submodules at all, let alone recursive
> ones, and even though it would work fine were it not for this option.
>
> Perhaps instead we should detect whether any submodules are present
> (e.g. is the .gitmodules file present at the top) and only enforce
> the version number in that case.  Do you mind working on a patch for
> this please?
>
> Thanks,
> -Brad
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://public.kitware.com/pipermail/cmake-developers/attachments/20110220/b97b65cb/attachment.html>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: 0001-CTest-git-Use-recursive-with-gitsubmodule-support.-B.patch
Type: application/octet-stream
Size: 3350 bytes
Desc: not available
URL: <http://public.kitware.com/pipermail/cmake-developers/attachments/20110220/b97b65cb/attachment-0002.obj>


More information about the cmake-developers mailing list