changeset 397 | 13fa0546ef87 |
--- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/cmake/FindTimestamp.cmake Fri Jan 16 00:42:02 2009 +0200 @@ -0,0 +1,14 @@ +# +# Function to get current timestamp. +# +# Sets PROJECT_BUILD_TIMESTAMP var +# +function (FindBuildTimestamp) + EXECUTE_PROCESS ( + COMMAND date --rfc-2822 + OUTPUT_VARIABLE timestamp_now + OUTPUT_STRIP_TRAILING_WHITESPACE + ) + + SET (PROJECT_BUILD_TIMESTAMP "${timestamp_now}" PARENT_SCOPE) +endfunction (FindBuildTimestamp)