2009/6/15 Jean-Pierre Bergamin <[email protected]>:
> 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"?

Did you try with
install([[SCRIPT <file>] [CODE <code>]] [...])

using this you may execute a CMake script at install time.



-- 
Erk
_______________________________________________
Powered by www.kitware.com

Visit other Kitware open-source projects at 
http://www.kitware.com/opensource/opensource.html

Please keep messages on-topic and check the CMake FAQ at: 
http://www.cmake.org/Wiki/CMake_FAQ

Follow this link to subscribe/unsubscribe:
http://www.cmake.org/mailman/listinfo/cmake

Reply via email to