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>2016-01-05 14:01:07 +0300
committerCampbell Barton <ideasman42@gmail.com>2016-01-05 14:13:36 +0300
commitc42ae8be6056119c9b899dd40cbcb3ed1f28c35a (patch)
tree467cdff46240994ec9c97080fd05adbb8b8a3f03 /source/creator
parent0a9935cb285b85c5e0b0e4d988246db41145634b (diff)
CMake: copy python DLL for MinGW builds
Diffstat (limited to 'source/creator')
-rw-r--r--source/creator/CMakeLists.txt14
1 files changed, 14 insertions, 0 deletions
diff --git a/source/creator/CMakeLists.txt b/source/creator/CMakeLists.txt
index 3c79465c940..0b3cf5ff18c 100644
--- a/source/creator/CMakeLists.txt
+++ b/source/creator/CMakeLists.txt
@@ -708,6 +708,20 @@ elseif(WIN32)
DESTINATION ${BLENDER_VERSION}/python/bin
CONFIGURATIONS Debug
)
+
+ # MinGW needs Python DLL
+ if(MINGW)
+ install(
+ FILES ${LIBDIR}/python/lib/python${_PYTHON_VERSION_NO_DOTS}.dll
+ DESTINATION "."
+ CONFIGURATIONS Release;RelWithDebInfo;MinSizeRel
+ )
+ install(
+ FILES ${LIBDIR}/python/lib/python${_PYTHON_VERSION_NO_DOTS}_d.dll
+ DESTINATION "."
+ CONFIGURATIONS Debug
+ )
+ endif()
endif()
unset(_PYTHON_VERSION_NO_DOTS)