[CMake] Git Doesn't to Pull with ExternalProject_Add

Daniele E. Domenichelli daniele.domenichelli at gmail.com
Wed Nov 13 06:35:35 EST 2013


Hello Constantine,

I'm investigating the same issue right in this moment...

On 13/11/13 10:19, Constantine Zakkaroff wrote:
> I have a SuperBuild project (using CMake 2.8.12 on Windows Vista x64) 
> depending on some other project cloned from a git repository. However 
> I've noticed the cloner repository doesn't get updated when I rebuild 
> the project.
> 
> Is it right to expect the repository to be updated automatically? Or 
> does it need to be done manually?

How do you set ${proj}_GIT_TAG? If it a tag or a commit hash it should
work, therefore if you change it in your superbuild, your repository
should be updated.

Unfortunately it doesn't work for branches. Therefore if you set it to
"master" it will work for the clone, but it won't work for the updates,
because the branch "master" is your local branch not the remote one
("origin/master")

Perhaps this should be fixed somehow, either the documentation of the
module to explicitly state this, or the module itself to pull from the
remote branch if GIT_TAG is a branch.


Cheers,
 Daniele



More information about the CMake mailing list