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:
authorSergey Sharybin <sergey.vfx@gmail.com>2012-11-26 16:38:40 +0400
committerSergey Sharybin <sergey.vfx@gmail.com>2012-11-26 16:38:40 +0400
commit2d6402c10c920ddb29a47666f3f7a60642f701ff (patch)
treec9c9416e315c8b09276da510e89aa930f69d960f /source/creator
parentc2714a6a5bf9c54cbff7f3c8e37ce25f9c21e8a0 (diff)
Switch windows to python 3.3
Should affect on msvc2008 only, however scons with msvc2010 could still be broken.
Diffstat (limited to 'source/creator')
-rw-r--r--source/creator/CMakeLists.txt13
1 files changed, 9 insertions, 4 deletions
diff --git a/source/creator/CMakeLists.txt b/source/creator/CMakeLists.txt
index 32b990d14c5..b66c000ac89 100644
--- a/source/creator/CMakeLists.txt
+++ b/source/creator/CMakeLists.txt
@@ -471,14 +471,17 @@ elseif(WIN32)
if(WITH_PYTHON)
set_lib_path(PYLIB "python")
+
+ STRING(REPLACE "." "" _PYTHON_VERSION_NO_DOTS ${PYTHON_VERSION})
+
install(
- FILES ${PYLIB}/lib/python32.dll
+ FILES ${PYLIB}/lib/python${_PYTHON_VERSION_NO_DOTS}.dll
DESTINATION ${TARGETDIR}
CONFIGURATIONS Release;RelWithDebInfo;MinSizeRel
)
install(
- FILES ${PYLIB}/lib/python32_d.dll
+ FILES ${PYLIB}/lib/python${_PYTHON_VERSION_NO_DOTS}_d.dll
DESTINATION ${TARGETDIR}
CONFIGURATIONS Debug
)
@@ -502,10 +505,10 @@ elseif(WIN32)
"
if(\"\${CMAKE_INSTALL_CONFIG_NAME}\" STREQUAL \"Debug\")
execute_process(COMMAND \"${CMAKE_COMMAND}\" -E chdir \"${TARGETDIR_VER}/python/lib\"
- \"${CMAKE_COMMAND}\" -E tar xzfv \"${LIBDIR}/release/python32_d.tar.gz\")
+ \"${CMAKE_COMMAND}\" -E tar xzfv \"${LIBDIR}/release/python${_PYTHON_VERSION_NO_DOTS}_d.tar.gz\")
else()
execute_process(COMMAND \"${CMAKE_COMMAND}\" -E chdir \"${TARGETDIR_VER}/python/lib\"
- \"${CMAKE_COMMAND}\" -E tar xzfv \"${LIBDIR}/release/python32.tar.gz\")
+ \"${CMAKE_COMMAND}\" -E tar xzfv \"${LIBDIR}/release/python${_PYTHON_VERSION_NO_DOTS}.tar.gz\")
endif()
"
)
@@ -513,6 +516,8 @@ elseif(WIN32)
# doesnt work, todo
# install(CODE "execute_process(COMMAND find ${TARGETDIR}/${BLENDER_VERSION}/python/lib/ -name '*.so' -exec strip -s {} '\;')")
endif()
+
+ unset(_PYTHON_VERSION_NO_DOTS)
endif()
if(CMAKE_CL_64)