I have a script that generates a revision.h file, I've spent the morning
trying to figure out how to make it so that ... any time CMake rebuilds
any of the other targets, it starts by running the make-new-revision script.
The idea is, I use the script manually to upversion, but anytime I type
"make" and /anything/ has to be done (even just a relink), it will do
the upversion first.
I've only managed to make it either source dependent or always build,
which forces the versionNo file to recompile and forces all executables
to relink, so if you type:
make ; make ... it will have to relink the executables the second time
because of an pointless upversion :)
- Oliver
--
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