Warning, /sdk/codevis/cmake/GetDate.cmake is written in an unsupported language. File is not indexed.
0001 macro(GET_DATE RESULT) 0002 if(WIN32) 0003 execute_process(COMMAND "cmd" " /C date /T" OUTPUT_VARIABLE ${RESULT}) 0004 string(REGEX REPLACE "(..)/(..)/(....).*" "\\3-\\2-\\1" ${RESULT} 0005 ${${RESULT}}) 0006 elseif(UNIX) 0007 execute_process(COMMAND "date" "+%Y-%m-%d" OUTPUT_VARIABLE ${RESULT}) 0008 else() 0009 message(SEND_ERROR "Unable to detect date") 0010 set(${RESULT} UNKNOWN) 0011 endif() 0012 endmacro() 0013