3 execute_process(COMMAND "cmd" " /C date /T" OUTPUT_VARIABLE ${RESULT})
4 string(REGEX REPLACE "(..)/(..)/(....).*" "\\1.\\2.\\3" ${RESULT} ${${RESULT}})
5 string(SUBSTRING ${${RESULT}} 0 10 ${RESULT})
7 execute_process(COMMAND "date" "+%Y-%m-%d" OUTPUT_VARIABLE ${RESULT})
8 string(REGEX REPLACE "(....)-(..)-(..).*" "\\1-\\2-\\3" ${RESULT} ${${RESULT}})
10 message(SEND_ERROR "date not implemented")
11 set(${RESULT} 00.00.0000)
17 execute_process(COMMAND "cmd" " /C time /T" OUTPUT_VARIABLE ${RESULT})
18 string(REGEX REPLACE "(..):(..).*" "\\1:\\2:00" ${RESULT} ${${RESULT}})
20 execute_process(COMMAND "date" "+%H:%M:%S" OUTPUT_VARIABLE ${RESULT})
21 string(REGEX REPLACE "(..):(..):(..).*" "\\1:\\2:\\3" ${RESULT} ${${RESULT}})
23 message(SEND_ERROR "time not implemented")
24 set(${RESULT} 00:00:00)
30 execute_process(COMMAND "cmd" " /C git --git-dir=${PROJECT_SOURCE_DIR}/.git rev-parse HEAD" OUTPUT_VARIABLE ${RESULT})
31 string(REGEX REPLACE "(.*)\n" "\\1" ${RESULT} ${${RESULT}})
33 execute_process(COMMAND "git" "--git-dir=${PROJECT_SOURCE_DIR}/.git" "rev-parse" "HEAD" OUTPUT_VARIABLE ${RESULT})
34 string(REGEX REPLACE "(.*)\n" "\\1" ${RESULT} ${${RESULT}})
36 message(SEND_ERROR "Git ID implemented")