Re: [CMake] ADD_DEFINITIONS with output from shell

2008-05-08 Thread David Sveningsson
Andreas Schneider skrev: David Cole wrote: See also: http://public.kitware.com/cgi-bin/viewcvs.cgi/Modules/FindSubversion.cmake?root=CMake&view=markup After a FIND_PACKAGE(Subversion) call, s

Re: [CMake] ADD_DEFINITIONS with output from shell

2008-05-07 Thread Andreas Schneider
David Cole wrote: See also: http://public.kitware.com/cgi-bin/viewcvs.cgi/Modules/FindSubversion.cmake?root=CMake&view=markup After a FIND_PACKAGE(Subversion) call, simply use the Subversion_WC_

Re: [CMake] ADD_DEFINITIONS with output from shell

2008-05-07 Thread David Cole
See also: http://public.kitware.com/cgi-bin/viewcvs.cgi/Modules/FindSubversion.cmake?root=CMake&view=markup After a FIND_PACKAGE(Subversion) call, simply use the Subversion_WC_INFO macro to retrieve an "svn info" call as a slew of CMake variables... HTH, David On Wed, May 7, 2008 at 7:03 AM, A

Re: [CMake] ADD_DEFINITIONS with output from shell

2008-05-07 Thread Andreas Schneider
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 sea

[CMake] ADD_DEFINITIONS with output from shell

2008-05-06 Thread David Sveningsson
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