[Bf-blender-cvs] SVN commit: /data/svn/bf-blender [35013] trunk/blender/build_files/cmake/ macros.cmake: fix for cmake with last commit.

Campbell Barton ideasman42 at gmail.com
Mon Feb 21 06:28:22 CET 2011


Revision: 35013
          http://projects.blender.org/scm/viewvc.php?view=rev&root=bf-blender&revision=35013
Author:   campbellbarton
Date:     2011-02-21 05:28:22 +0000 (Mon, 21 Feb 2011)
Log Message:
-----------
fix for cmake with last commit.

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

Modified: trunk/blender/build_files/cmake/macros.cmake
===================================================================
--- trunk/blender/build_files/cmake/macros.cmake	2011-02-21 04:45:47 UTC (rev 35012)
+++ trunk/blender/build_files/cmake/macros.cmake	2011-02-21 05:28:22 UTC (rev 35013)
@@ -338,23 +338,23 @@
 	string(REGEX REPLACE " " ";" CONTENT "${CONTENT}")
 
 	foreach(ITEM ${CONTENT})
-		if(LASTITEM MATCHES "BLENDER_VERSION")
+		if(LASTITEM MATCHES "^BLENDER_VERSION$")
 			MATH(EXPR BLENDER_VERSION_MAJOR "${ITEM} / 100")
 			MATH(EXPR BLENDER_VERSION_MINOR "${ITEM} % 100")
 			set(BLENDER_VERSION "${BLENDER_VERSION_MAJOR}.${BLENDER_VERSION_MINOR}")
 		endif()
 
-		if(LASTITEM MATCHES "BLENDER_SUBVERSION")
+		if(LASTITEM MATCHES "^BLENDER_SUBVERSION$")
 			set(BLENDER_SUBVERSION ${ITEM})
 		endif()
 
-		if(LASTITEM MATCHES "BLENDER_MINVERSION")
+		if(LASTITEM MATCHES "^BLENDER_MINVERSION$")
 			MATH(EXPR BLENDER_MINVERSION_MAJOR "${ITEM} / 100")
 			MATH(EXPR BLENDER_MINVERSION_MINOR "${ITEM} % 100")
 			set(BLENDER_MINVERSION "${BLENDER_MINVERSION_MAJOR}.${BLENDER_MINVERSION_MINOR}")
 		endif()
 
-		if(LASTITEM MATCHES "BLENDER_MINSUBVERSION")
+		if(LASTITEM MATCHES "^BLENDER_MINSUBVERSION$")
 			set(BLENDER_MINSUBVERSION ${ITEM})
 		endif()
 




More information about the Bf-blender-cvs mailing list