Author: tfaber
Date: Sat Dec 12 08:27:07 2015
New Revision: 70324
URL:
http://svn.reactos.org/svn/reactos?rev=70324&view=rev
Log:
[VERSION]
- Properly determine SVN revision. We can't expect .svn folders to exist in each
subdir anymore.
Modified:
trunk/reactos/include/reactos/version.cmake
Modified: trunk/reactos/include/reactos/version.cmake
URL:
http://svn.reactos.org/svn/reactos/trunk/reactos/include/reactos/version.cm…
==============================================================================
--- trunk/reactos/include/reactos/version.cmake [iso-8859-1] (original)
+++ trunk/reactos/include/reactos/version.cmake [iso-8859-1] Sat Dec 12 08:27:07 2015
@@ -37,10 +37,10 @@
# get svn revision number
set(REVISION "rUNKNOWN")
set(KERNEL_VERSION_BUILD_HEX "0")
-if(EXISTS "${CMAKE_CURRENT_SOURCE_DIR}/.svn")
+if(EXISTS "${REACTOS_SOURCE_DIR}/.svn" OR EXISTS
"${REACTOS_SOURCE_DIR}/../.svn")
find_package(Subversion)
if(Subversion_FOUND)
- subversion_wc_info(${CMAKE_CURRENT_SOURCE_DIR} SVNINFO)
+ subversion_wc_info(${REACTOS_SOURCE_DIR} SVNINFO)
if(SVNINFO_WC_REVISION)
set(REVISION "r${SVNINFO_WC_REVISION}")
converttohex(${SVNINFO_WC_REVISION} KERNEL_VERSION_BUILD_HEX)