[CMake] CMake generated build number?

Mike Arthur mike at mikearthur.co.uk
Wed Nov 5 09:18:37 EST 2008


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/


More information about the CMake mailing list