mirror of
https://github.com/reactos/reactos.git
synced 2025-08-05 19:03:00 +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 changed files with 7 additions and 6 deletions
|
@ -1,14 +1,15 @@
|
||||||
macro(today RESULT)
|
macro(today RESULT)
|
||||||
if (WIN32)
|
if(CMAKE_HOST_WIN32)
|
||||||
execute_process(COMMAND "${REACTOS_SOURCE_DIR}/tools/getdate.exe" OUTPUT_VARIABLE ${RESULT})
|
execute_process(COMMAND "${REACTOS_SOURCE_DIR}/tools/getdate.exe" OUTPUT_VARIABLE ${RESULT})
|
||||||
string(STRIP ${${RESULT}} ${RESULT})
|
string(STRIP ${${RESULT}} ${RESULT})
|
||||||
elseif(UNIX)
|
elseif(CMAKE_HOST_UNIX)
|
||||||
execute_process(COMMAND "date" "+%Y%m%d" OUTPUT_VARIABLE ${${RESULT}})
|
execute_process(COMMAND "date" "+%Y%m%d" OUTPUT_VARIABLE ${RESULT})
|
||||||
else (WIN32)
|
string(STRIP ${${RESULT}} ${RESULT})
|
||||||
|
else()
|
||||||
message(SEND_ERROR "date not implemented")
|
message(SEND_ERROR "date not implemented")
|
||||||
set(${RESULT} 00000000)
|
set(${RESULT} 00000000)
|
||||||
endif (WIN32)
|
endif()
|
||||||
endmacro(today)
|
endmacro()
|
||||||
|
|
||||||
macro(inttohex INTVALUE OUTPUT_VARIABLE)
|
macro(inttohex INTVALUE OUTPUT_VARIABLE)
|
||||||
list(APPEND HEXLIST 0 1 2 3 4 5 6 7 8 9 a b c d e f)
|
list(APPEND HEXLIST 0 1 2 3 4 5 6 7 8 9 a b c d e f)
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue