See also:<br><a href="http://public.kitware.com/cgi-bin/viewcvs.cgi/Modules/FindSubversion.cmake?root=CMake&amp;view=markup">http://public.kitware.com/cgi-bin/viewcvs.cgi/Modules/FindSubversion.cmake?root=CMake&amp;view=markup</a><br>
<br>After a FIND_PACKAGE(Subversion) call, simply use the Subversion_WC_INFO macro to retrieve an &quot;svn info&quot; call as a slew of CMake variables...<br><br><br>HTH,<br>David<br><br><br><div class="gmail_quote">On Wed, May 7, 2008 at 7:03 AM, Andreas Schneider &lt;<a href="mailto:mail@cynapses.org">mail@cynapses.org</a>&gt; wrote:<br>
<blockquote class="gmail_quote" style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;"><div class="Ih2E3d">David Sveningsson wrote:<br>
<blockquote class="gmail_quote" style="border-left: 1px solid rgb(204, 204, 204); padding-left: 1ex;">
Hi, I am converting some makefiles for a large application. One of the makefiles adds the following to CFLAGS:<br>
<br>
-DSVN_REVISION=&quot;\&quot;`svn info|grep Revision| awk &#39;{print $2}&#39;`\&quot;&quot;<br>
<br>
(it runs some shell commands which will output the current subversion revision)<br>
<br>
I tried searching for a way for cmake to run the above command but I found nothing. Is there a way to accomplish this?<br>
</blockquote>
<br></div>
Take a look at:<br>
<br>
<a href="http://dev.openwengo.org/trac/openwengo/trac.fcgi/browser/owbuild/trunk/owbuild/owbuild/OWGetSvnRevision.cmake" target="_blank">http://dev.openwengo.org/trac/openwengo/trac.fcgi/browser/owbuild/trunk/owbuild/owbuild/OWGetSvnRevision.cmake</a><br>

<br>
<br>
 &nbsp; &nbsp; &nbsp; &nbsp;-- andreas<br><font color="#888888">
<br>
-- <br>
<a href="http://www.cynapses.org/" target="_blank">http://www.cynapses.org/</a> - cybernetic synapses<br>
<br>
<br>
</font><br>_______________________________________________<br>
CMake mailing list<br>
<a href="mailto:CMake@cmake.org">CMake@cmake.org</a><br>
<a href="http://www.cmake.org/mailman/listinfo/cmake" target="_blank">http://www.cmake.org/mailman/listinfo/cmake</a><br></blockquote></div><br>