[CMake] Put svn revision into file on every "make install"

Jean-Pierre Bergamin james at ractive.ch
Mon Jun 15 07:30:24 EDT 2009


Hello cmake users

I want to put the current subversion revision into a script every time I run
"make install".
Currently, I use configure_file() to replace a variable in the script, but
this only updates the script when either the script or something in
CMakeLists.txt changes.

Is there a way to update the script every time I run "make install"?


Thanks for your hints

James





More information about the CMake mailing list