On Thu, Mar 20, 2008 at 8:22 AM, Vandenbroucke Sander <
[EMAIL PROTECTED]> wrote:

> >From: Hendrik Sattler [mailto:[EMAIL PROTECTED]
> >Sent: donderdag 20 maart 2008 12:31
> >To: Vandenbroucke Sander
> >Cc: [email protected]
> >Subject: Re: [CMake] embed version numbers in libraries (.so, a) and
> >executables
> >
> >Can't you use the method provided by SVN using $Id$?
> >Writing a proper resource file for Windows DLLs that include a
> version.h
> >is not that difficult.
> >
> >HS
> >
> >
> By using properties on a file? Doesn't that only work when this file is
> changed & committed?


Yes you are correct.

Automatic keyword substitution is supported by SVN if you enable it (since
it was supported by CVS) but the info substituted is on a per-file basis.
So if you were to expand $Id$ in a header file you would get the revision
number of that header file only and not the current revision number of your
checkout.


http://svnbook.red-bean.com/en/1.1/ch07s02.html
Id

This keyword is a compressed combination of the other keywords. Its
substitution looks something like $Id: calc.c 148 2002-07-28 21:30:43Z sally
$, and is interpreted to mean that the file calc.c was last changed in
revision 148 on the evening of July 28, 2002 by the user sally.


-- 
Philip Lowman
_______________________________________________
CMake mailing list
[email protected]
http://www.cmake.org/mailman/listinfo/cmake

Reply via email to