fix for cmake with last commit.
This commit is contained in:
parent
848d60caee
commit
ff84ad3151
|
@ -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()
|
||||
|
||||
|
|
Loading…
Reference in New Issue