[Cmake] howto increment build number with cmake

Michael T. Wagner Michael T. Wagner" <mtw at shared-reality.com
Mon, 12 Jan 2004 17:03:05 +0100


This is a multi-part message in MIME format.

------=_NextPart_000_0015_01C3D92D.F23F5B60
Content-Type: text/plain;
	charset="iso-8859-1"
Content-Transfer-Encoding: quoted-printable

Hi to the list,
I'm trying to use cmake to increment a build number in the source code =
on each make.=20
I've looked into the CONFIGURE_FILE command but didnt find a solution =
since it just replaces cmake variables.=20
I'm using cmake on WIN32 with vs.net 2003.
Any clues ?=20

Thanks in advance,

Michael=20

------=_NextPart_000_0015_01C3D92D.F23F5B60
Content-Type: text/html;
	charset="iso-8859-1"
Content-Transfer-Encoding: quoted-printable

<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">
<HTML><HEAD>
<META http-equiv=3DContent-Type content=3D"text/html; =
charset=3Diso-8859-1">
<META content=3D"MSHTML 6.00.2800.1141" name=3DGENERATOR>
<STYLE></STYLE>
</HEAD>
<BODY bgColor=3D#ffffff>
<DIV><FONT face=3DArial size=3D2>Hi to the list,</FONT></DIV>
<DIV><FONT face=3DArial size=3D2>I'm trying to use cmake to increment a =
build number=20
in the source code on each make.&nbsp;</FONT></DIV>
<DIV><FONT face=3DArial size=3D2>I've looked into the CONFIGURE_FILE =
command but=20
didnt find a solution since it just replaces cmake variables. =
</FONT></DIV>
<DIV><FONT face=3DArial size=3D2>I'm using cmake on WIN32 with vs.net=20
2003.</FONT></DIV>
<DIV><FONT face=3DArial size=3D2>Any clues ? </FONT></DIV>
<DIV><FONT face=3DArial size=3D2></FONT>&nbsp;</DIV>
<DIV><FONT face=3DArial size=3D2>Thanks in advance,</FONT></DIV>
<DIV><FONT face=3DArial size=3D2></FONT>&nbsp;</DIV>
<DIV><FONT face=3DArial size=3D2>Michael </FONT></DIV>
<DIV><FONT face=3DArial size=3D2></FONT>&nbsp;</DIV></BODY></HTML>

------=_NextPart_000_0015_01C3D92D.F23F5B60--