[CMake] CMake generated build number?
Blezek, Daniel J.
Blezek.Daniel at mayo.edu
Wed Nov 5 09:43:16 EST 2008
Hi Mike,
This only works during the CMake configure process, not during the
build. So it's possible for this information to be out of date. I
think I'll have to make a bogus target to grab the info from Subversion,
which is not what I had wanted to do.
Regards,
-dan
-----Original Message-----
From: cmake-bounces at cmake.org [mailto:cmake-bounces at cmake.org] On Behalf
Of Mike Arthur
Sent: Wednesday, November 05, 2008 8:19 AM
To: cmake at cmake.org
Subject: Re: [CMake] CMake generated build number?
On Wednesday 05 November 2008 14:00:18 Blezek, Daniel J. wrote:
> I'd like to have a monotonically increasing "build number" auto
> generated by CMake. This would be for official builds of the
> software, so we could track algorithm changes / results. I'd also be
> happy if CMake could pull the latest SVN revision number. This would
> go in a -D during the build.
See to the documentation for the "Subversion" module/package and the
corresponding functions. I use them to do something very similar by
getting the contents of the branch name and setting the application
version depending on information extracted from that name.
--
Cheers,
Mike Arthur
http://mikearthur.co.uk/
_______________________________________________
CMake mailing list
CMake at cmake.org
http://www.cmake.org/mailman/listinfo/cmake
More information about the CMake
mailing list