CMake: copy python DLL for MinGW builds

This commit is contained in:
Campbell Barton 2016-01-05 22:01:07 +11:00
parent 0a9935cb28
commit c42ae8be60
1 changed files with 14 additions and 0 deletions

View File

@ -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)