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: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On Behalf Of Mike Arthur Sent: Wednesday, November 05, 2008 8:19 AM To: [email protected] 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 [email protected] http://www.cmake.org/mailman/listinfo/cmake _______________________________________________ CMake mailing list [email protected] http://www.cmake.org/mailman/listinfo/cmake
