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-04-12 20:20:41 +0400
committerCampbell Barton <ideasman42@gmail.com>2011-04-12 20:20:41 +0400
commitf0b45cc1fbdb6115ce61bcd7fdb4cd49e70d109e (patch)
treede6efefa08a3a17e494dd7a29856d8e2eeb34fc8 /build_files
parentd14738a5603389cecc582c10cf90fe650d368909 (diff)
- fix for cmake when there is no version character.
- link to release docs correctly from the splash page.
Diffstat (limited to 'build_files')
-rw-r--r--build_files/cmake/macros.cmake4
1 files changed, 3 insertions, 1 deletions
diff --git a/build_files/cmake/macros.cmake b/build_files/cmake/macros.cmake
index a4a6922bca3..ca1dd79cd8e 100644
--- a/build_files/cmake/macros.cmake
+++ b/build_files/cmake/macros.cmake
@@ -376,7 +376,8 @@ macro(get_blender_version)
set(BLENDER_VERSION_CYCLE ${_out_version_cycle})
# for packaging, alpha to numbers
- if(${BLENDER_VERSION_CHAR})
+ string(COMPARE EQUAL "${BLENDER_VERSION_CHAR}" "" _out_version_char_empty)
+ if(${_out_version_char_empty})
set(BLENDER_VERSION_CHAR_INDEX "0")
else()
set(_char_ls a b c d e f g h i j k l m n o p q r s t u v w q y z)
@@ -388,6 +389,7 @@ macro(get_blender_version)
unset(_out_subversion)
unset(_out_version_char)
+ unset(_out_version_char_empty)
unset(_out_version_cycle)
# message(STATUS "Version (Internal): ${BLENDER_VERSION}.${BLENDER_SUBVERSION}, Version (external): ${BLENDER_VERSION}${BLENDER_VERSION_CHAR}-${BLENDER_VERSION_CYCLE}")