Re: [CMake] Addition to FindGit

2011-07-12 Thread Thomas Petazzoni
Hello, Le Sun, 05 Jun 2011 11:02:00 +0200, Quintus sutn...@gmx.net a écrit : I'm working on a git-versioned project that I'd like to display it's version number for development versions like this: 1.2.3-dev (commit abc1234 on devel, 12/4/10) For similar need I did something like :

Re: [CMake] Addition to FindGit

2011-07-12 Thread Eric Noulard
2011/7/12 Thomas Petazzoni thomas.petazz...@free-electrons.com: Hello, Le Sun, 05 Jun 2011 11:02:00 +0200, Quintus sutn...@gmx.net a écrit : I'm working on a git-versioned project that I'd like to display it's version number for development versions like this: 1.2.3-dev (commit abc1234 on

Re: [CMake] Addition to FindGit

2011-07-12 Thread Michael Hertling
On 07/12/2011 09:35 AM, Eric Noulard wrote: 2011/7/12 Thomas Petazzoni thomas.petazz...@free-electrons.com: Hello, Le Sun, 05 Jun 2011 11:02:00 +0200, Quintus sutn...@gmx.net a écrit : I'm working on a git-versioned project that I'd like to display it's version number for development

Re: [CMake] Addition to FindGit

2011-07-12 Thread Eric Noulard
2011/7/12 Michael Hertling mhertl...@online.de: On 07/12/2011 09:35 AM, Eric Noulard wrote: 2011/7/12 Thomas Petazzoni thomas.petazz...@free-electrons.com: Hello, Le Sun, 05 Jun 2011 11:02:00 +0200, Quintus sutn...@gmx.net a écrit : I'm working on a git-versioned project that I'd like to

Re: [CMake] Addition to FindGit

2011-06-06 Thread Brad King
On 06/05/2011 05:02 AM, Quintus wrote: I'm working on a git-versioned project that I'd like to display it's version number for development versions like this: 1.2.3-dev (commit abc1234 on devel, 12/4/10) FYI, consider using git describe for versions. CMake's FindGit module seems to be quite

[CMake] Addition to FindGit

2011-06-05 Thread Quintus
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 Hi there, I'm working on a git-versioned project that I'd like to display it's version number for development versions like this: 1.2.3-dev (commit abc1234 on devel, 12/4/10) CMake's FindGit module seems to be quite limited as it just gives me the

Re: [CMake] Addition to FindGit

2011-06-05 Thread Nicolas Desprès
Hi, That's a great idea. I'd like to contribute some function too. I have rewritten a couple of them while working on project versioned by Git. Cheers, -Nico On Sun, Jun 5, 2011 at 11:02 AM, Quintus sutn...@gmx.net wrote: -BEGIN PGP SIGNED MESSAGE- Hash: SHA1 Hi there, I'm

Re: [CMake] Addition to FindGit

2011-06-05 Thread Jean-Christophe Fillion-Robin
Hi Folks, This updated version of FindGit supports both git and git-svn. See http://viewvc.slicer.org/viewvc.cgi/Slicer4/trunk/CMake/FindGit.cmake?revision=16492view=markup Hth Jc 2011/6/5 Nicolas Desprès nicolas.desp...@gmail.com Hi, That's a great idea. I'd like to contribute some