Author: spetreolle
Date: Sun Jan 23 11:27:01 2011
New Revision: 50472
URL:
http://svn.reactos.org/svn/reactos?rev=50472&view=rev
Log:
[CMAKE]
Fix buildno.h when subversion is not installed.
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 Jan 23 11:27:01
2011
@@ -46,18 +46,19 @@
math(EXPR REACTOS_DLL_VERSION_MAJOR "${KERNEL_VERSION_MAJOR}+42")
set(DLL_VERSION_STR
"${REACTOS_DLL_VERSION_MAJOR}.${KERNEL_VERSION_MINOR}-${KERNEL_VERSION_BUILD_TYPE}")
+
+# get svn revision number
+set(REVISION "-rUNKNOWN")
+set(KERNEL_VERSION_BUILD_HEX "0")
if(EXISTS "${CMAKE_CURRENT_SOURCE_DIR}/.svn")
find_package(Subversion)
if(Subversion_FOUND)
subversion_wc_info(${CMAKE_CURRENT_SOURCE_DIR} SVNINFO)
if(SVNINFO_WC_REVISION)
set(REVISION "-r${SVNINFO_WC_REVISION}")
- converttohex(${SVNINFO_WC_REVISION} KERNEL_VERSION_BUILD_HEX)
+ converttohex(${SVNINFO_WC_REVISION} KERNEL_VERSION_BUILD_HEX)
endif()
endif()
-else()
- set(REVISION "-rUNKNOWN")
- set(HEXREVISION "0x0")
endif()
configure_file(include/reactos/version.h.cmake
${REACTOS_BINARY_DIR}/include/reactos/version.h)