|
|
@ -24,6 +24,9 @@ ELSE()
|
|
|
|
ENDIF()
|
|
|
|
ENDIF()
|
|
|
|
|
|
|
|
|
|
|
|
MACRO(NOW RESULT)
|
|
|
|
MACRO(NOW RESULT)
|
|
|
|
|
|
|
|
IF(CMAKE_VERSION VERSION_GREATER "2.8.10")
|
|
|
|
|
|
|
|
STRING(TIMESTAMP ${RESULT} "%Y-%m-%d %H:%M:%S")
|
|
|
|
|
|
|
|
ELSE()
|
|
|
|
IF(WIN32)
|
|
|
|
IF(WIN32)
|
|
|
|
EXECUTE_PROCESS(COMMAND "wmic" "os" "get" "localdatetime" OUTPUT_VARIABLE DATETIME)
|
|
|
|
EXECUTE_PROCESS(COMMAND "wmic" "os" "get" "localdatetime" OUTPUT_VARIABLE DATETIME)
|
|
|
|
IF(NOT DATETIME MATCHES "ERROR")
|
|
|
|
IF(NOT DATETIME MATCHES "ERROR")
|
|
|
@ -36,6 +39,7 @@ MACRO(NOW RESULT)
|
|
|
|
MESSAGE(SEND_ERROR "date not implemented")
|
|
|
|
MESSAGE(SEND_ERROR "date not implemented")
|
|
|
|
SET(${RESULT} "0000-00-00 00:00:00")
|
|
|
|
SET(${RESULT} "0000-00-00 00:00:00")
|
|
|
|
ENDIF()
|
|
|
|
ENDIF()
|
|
|
|
|
|
|
|
ENDIF()
|
|
|
|
ENDMACRO()
|
|
|
|
ENDMACRO()
|
|
|
|
|
|
|
|
|
|
|
|
IF(EXISTS "${ROOT_DIR}/.svn/")
|
|
|
|
IF(EXISTS "${ROOT_DIR}/.svn/")
|
|
|
|