[Bf-committers] [Bf-blender-cvs] SVN commit: /data/svn/bf-blender [35131] trunk/blender: fix for cmake not having the correct svn revision in buildinfo, now generate a header every build with the time, date, svn revision.

IRIE Shinsuke irieshinsuke at yahoo.co.jp
Fri Feb 25 06:06:42 CET 2011


Hi GSR,

Rev number cannot be detected at all. Please fix it.

Index: blender/build_files/cmake/buildinfo.cmake
===================================================================
--- blender/build_files/cmake/buildinfo.cmake	(revision 35136)
+++ blender/build_files/cmake/buildinfo.cmake	(working copy)
@@ -8,9 +8,9 @@
 # with a default in case anything fails, for examble when using git-svn
 set(MY_WC_REVISION "unknown")
 # Guess if this is a SVN working copy and then look up the revision
-if(EXISTS ${CMAKE_SOURCE_DIR}/.svn/)
+if(EXISTS ${SOURCE_DIR}/.svn)
 	if(Subversion_FOUND)
-		bversion_WC_INFO(${SOURCE_DIR} MY)
+		Subversion_WC_INFO(${SOURCE_DIR} MY)
 	endif()
 endif()
 
IRIE


More information about the Bf-committers mailing list