But if you're going to write a C program anyway....
...then just use "time" and/or "gmtime" standard library functions to
print the date/time out in whatever format you want.
The hard part here is not printing out the date and time.
The hard parts is capturing the date and time AT link time,
freezing those numbers and incorporating them into the executable.
All in a portable way and without forcing a relink.
I think I have enough pieces from the various responses that
I can now assemble the final solution.
Bill
_______________________________________________
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