Cmake add installation of redistributables for msvc 2013
This commit is contained in:
@@ -964,4 +964,20 @@ if(WIN32 AND NOT WITH_PYTHON_MODULE)
|
||||
|
||||
install(TARGETS blender blender-launcher
|
||||
DESTINATION ".")
|
||||
if(MSVC12_REDIST_DIR)
|
||||
if(CMAKE_CL_64)
|
||||
set(_WIN_PLATFORM x64)
|
||||
else()
|
||||
set(_WIN_PLATFORM x86)
|
||||
endif()
|
||||
install(
|
||||
FILES ${MSVC12_REDIST_DIR}/${_WIN_PLATFORM}/Microsoft.VC120.CRT/msvcp120.dll
|
||||
${MSVC12_REDIST_DIR}/${_WIN_PLATFORM}/Microsoft.VC120.CRT/msvcr120.dll
|
||||
DESTINATION ".")
|
||||
if(WITH_OPENMP)
|
||||
install(
|
||||
FILES ${MSVC12_REDIST_DIR}/${_WIN_PLATFORM}/Microsoft.VC120.OpenMP/vcomp120.dll
|
||||
DESTINATION ".")
|
||||
endif()
|
||||
endif()
|
||||
endif()
|
||||
|
Reference in New Issue
Block a user