David Sveningsson wrote:
Hi, I am converting some makefiles for a large application. One of the makefiles adds the following to CFLAGS:-DSVN_REVISION="\"`svn info|grep Revision| awk '{print $2}'`\""(it runs some shell commands which will output the current subversion revision)I tried searching for a way for cmake to run the above command but I found nothing. Is there a way to accomplish this?
Take a look at: http://dev.openwengo.org/trac/openwengo/trac.fcgi/browser/owbuild/trunk/owbuild/owbuild/OWGetSvnRevision.cmake -- andreas -- http://www.cynapses.org/ - cybernetic synapses
signature.asc
Description: OpenPGP digital signature
_______________________________________________ CMake mailing list CMake@cmake.org http://www.cmake.org/mailman/listinfo/cmake