Skip to content
Snippets Groups Projects
Commit ff84ad31 authored by Campbell Barton's avatar Campbell Barton
Browse files

fix for cmake with last commit.

parent 848d60ca
Branches
Tags
No related merge requests found
......@@ -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()
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment