[Bf-blender-cvs] SVN commit: /data/svn/bf-blender [35137] trunk/blender/build_files/cmake/ buildinfo.cmake: Fix buildinfo, as pointed by IRIE Shinsuke.

gsr b3d gsr.b3d at infernal-iceberg.com
Fri Feb 25 07:03:01 CET 2011


Revision: 35137
          http://projects.blender.org/scm/viewvc.php?view=rev&root=bf-blender&revision=35137
Author:   gsrb3d
Date:     2011-02-25 06:03:01 +0000 (Fri, 25 Feb 2011)
Log Message:
-----------
Fix buildinfo, as pointed by IRIE Shinsuke.
Added a note about doubtful "copy if different".

Modified Paths:
--------------
    trunk/blender/build_files/cmake/buildinfo.cmake

Modified: trunk/blender/build_files/cmake/buildinfo.cmake
===================================================================
--- trunk/blender/build_files/cmake/buildinfo.cmake	2011-02-25 04:15:45 UTC (rev 35136)
+++ trunk/blender/build_files/cmake/buildinfo.cmake	2011-02-25 06:03:01 UTC (rev 35137)
@@ -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()
 
@@ -34,5 +34,6 @@
 
 # Copy the file to the final header only if the version changes
 # and avoid needless rebuilds
+# TODO: verify this comment is true, as BUILD_TIME probably changes
 execute_process(COMMAND ${CMAKE_COMMAND} -E copy_if_different
                         buildinfo.h.txt buildinfo.h)




More information about the Bf-blender-cvs mailing list