[CMake] Running a Python script at PRE_BUILD

Ali Pouladi dude_170 at yahoo.com
Sun Mar 15 03:25:54 EDT 2009


Hello all,

How can I run a Python script at PRE_BUILD (or PRE_LINK) time? 
I basically need to generate a header file containing build number filled with the SVN revision number of the trunk. I already have written a script for doing so, I just don't know how to get it to run before the build starts. I am using CMAKE 2.6, building both under Win32 and Linux. Thanks.


      Stay connected to the people that matter most with a smarter inbox. Take a look http://au.docs.yahoo.com/mail/smarterinbox


More information about the CMake mailing list