diff options
author | Campbell Barton <ideasman42@gmail.com> | 2016-01-05 14:01:07 +0300 |
---|---|---|
committer | Campbell Barton <ideasman42@gmail.com> | 2016-01-05 14:13:36 +0300 |
commit | c42ae8be6056119c9b899dd40cbcb3ed1f28c35a (patch) | |
tree | 467cdff46240994ec9c97080fd05adbb8b8a3f03 /source | |
parent | 0a9935cb285b85c5e0b0e4d988246db41145634b (diff) |
CMake: copy python DLL for MinGW builds
Diffstat (limited to 'source')
-rw-r--r-- | source/creator/CMakeLists.txt | 14 |
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) |