Commit graph

3 commits

Author SHA1 Message Date
Mark Pictor
13204e4027 change scl_version_string.cmake to fix parallel ctest issue
This replaces use of the system time command with __DATE__ and __TIME__

I think the following two errors are caused by fedex_plus being rebuilt for each test:

Linking CXX executable ../../bin/fedex_plus
CMakeFiles/fedex_plus.dir/__/express/fedex.c.o: file not recognized: File truncated

and

[ 87%] Running fedex_plus for AP214E3_2010...
/bin/sh: /opt/step/test-scl/build_ctest/bin/fedex_plus: Text file busy

fedex_plus is being rebuilt because the version string changes, since it contains the date and time.
2011-12-07 18:44:43 -05:00
Mark Pictor
d190a1e042 for version info, read SCL_VERSION.txt if git fails 2011-11-27 11:41:27 -05:00
Mark Pictor
dc30ee21fd Generate version info and timestamp at build time
* Print this info from `p21read -v` and in a comment in generated source, not just from `fedex_plus -v`

* Use a function `const char* scl_version()`, instead of using the macro `SCL_COMMIT_ID`

* Fail gracefully if the `.git` directory does not exist (thanks CY!)

* Fixes issue #89
2011-11-27 11:12:54 -05:00