mirror of
https://github.com/reactos/reactos.git
synced 2024-08-19 09:59:44 +00:00
[CMAKE]
- 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:
parent
f9fead82ad
commit
afd1fcd6cf
|
@ -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)
|
||||
|
|
Loading…
Reference in a new issue