Author: akhaldi
Date: Sun Feb 13 19:01:08 2011
New Revision: 50684
URL:
http://svn.reactos.org/svn/reactos?rev=50684&view=rev
Log:
[CMAKE]
- Fix host checking and the unix case handling in today() macro.
- Fixes unix build.
Modified:
branches/cmake-bringup/include/reactos/version.cmake
Modified: branches/cmake-bringup/include/reactos/version.cmake
URL:
http://svn.reactos.org/svn/reactos/branches/cmake-bringup/include/reactos/v…
==============================================================================
--- branches/cmake-bringup/include/reactos/version.cmake [iso-8859-1] (original)
+++ branches/cmake-bringup/include/reactos/version.cmake [iso-8859-1] Sun Feb 13 19:01:08
2011
@@ -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)