- EXECUTE_PROCESS(COMMAND "date" OUTPUT_VARIABLE ${RESULT})
- string(REGEX REPLACE "(...) (...) (.+) (..:..:..) (.+) (....).*" "\\1 \\2 \\3 \\4 \\5 \\6" ${RESULT} ${${RESULT}})
+ EXECUTE_PROCESS(COMMAND "date" "--rfc-2822" OUTPUT_VARIABLE ${RESULT})
+ string(REGEX REPLACE "\n" " " ${RESULT} ${${RESULT}})