Welcome to mirror list, hosted at ThFree Co, Russian Federation.

git.blender.org/blender.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorCampbell Barton <ideasman42@gmail.com>2011-02-21 08:28:22 +0300
committerCampbell Barton <ideasman42@gmail.com>2011-02-21 08:28:22 +0300
commitff84ad3151316dffd74282e97d02e3bb76cfca4c (patch)
tree0d64c62da479790a15a3e4d6f5b3137b61d0ac6f /build_files/cmake
parent848d60caee5242f6aae1ec76eb220376133b34a8 (diff)
fix for cmake with last commit.
Diffstat (limited to 'build_files/cmake')
-rw-r--r--build_files/cmake/macros.cmake8
1 files changed, 4 insertions, 4 deletions
diff --git a/build_files/cmake/macros.cmake b/build_files/cmake/macros.cmake
index a7ad2d64b13..b84950c47aa 100644
--- a/build_files/cmake/macros.cmake
+++ b/build_files/cmake/macros.cmake
@@ -338,23 +338,23 @@ macro(get_blender_version)
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()