- Fix host checking and the unix case handling in today() macro.
- Fixes unix build.

svn path=/branches/cmake-bringup/; revision=50684
This commit is contained in:
Amine Khaldi 2011-02-13 19:01:08 +00:00
parent f9fead82ad
commit afd1fcd6cf

View file

@ -1,14 +1,15 @@
macro(today RESULT)
if (WIN32)
if(CMAKE_HOST_WIN32)
execute_process(COMMAND "${REACTOS_SOURCE_DIR}/tools/getdate.exe" OUTPUT_VARIABLE ${RESULT})
string(STRIP ${${RESULT}} ${RESULT})
elseif(UNIX)
execute_process(COMMAND "date" "+%Y%m%d" OUTPUT_VARIABLE ${${RESULT}})
else (WIN32)
elseif(CMAKE_HOST_UNIX)
execute_process(COMMAND "date" "+%Y%m%d" OUTPUT_VARIABLE ${RESULT})
string(STRIP ${${RESULT}} ${RESULT})
else()
message(SEND_ERROR "date not implemented")
set(${RESULT} 00000000)
endif (WIN32)
endmacro(today)
endif()
endmacro()
macro(inttohex INTVALUE OUTPUT_VARIABLE)
list(APPEND HEXLIST 0 1 2 3 4 5 6 7 8 9 a b c d e f)