summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorBrad King <brad.king@kitware.com>2015-05-04 16:36:45 (GMT)
committerBrad King <brad.king@kitware.com>2015-05-04 16:36:45 (GMT)
commit9c3b9d1a27924602ba7ae9c0dde591414d8f892c (patch)
tree3a84f6a5bceb16b9b8236cda3bdf351de0524a90
parentb84e9ae632ea78db87abca585785032c5b2b3e40 (diff)
parent9b2778d412351db9c8c7f667335cbdf51b555124 (diff)
downloadCMake-9c3b9d1a27924602ba7ae9c0dde591414d8f892c.zip
CMake-9c3b9d1a27924602ba7ae9c0dde591414d8f892c.tar.gz
CMake-9c3b9d1a27924602ba7ae9c0dde591414d8f892c.tar.bz2
Merge branch 'InstallRequiredSystemLibraries-vs2015' into release
-rw-r--r--Modules/InstallRequiredSystemLibraries.cmake12
1 files changed, 10 insertions, 2 deletions
diff --git a/Modules/InstallRequiredSystemLibraries.cmake b/Modules/InstallRequiredSystemLibraries.cmake
index 5afb517..d8ede1c 100644
--- a/Modules/InstallRequiredSystemLibraries.cmake
+++ b/Modules/InstallRequiredSystemLibraries.cmake
@@ -172,8 +172,12 @@ if(MSVC)
if(NOT CMAKE_INSTALL_DEBUG_LIBRARIES_ONLY)
set(__install__libs
"${MSVC${v}_CRT_DIR}/msvcp${v}0.dll"
- "${MSVC${v}_CRT_DIR}/msvcr${v}0.dll"
)
+ if(NOT v VERSION_LESS 14)
+ list(APPEND __install__libs "${MSVC${v}_CRT_DIR}/vcruntime${v}0.dll")
+ else()
+ list(APPEND __install__libs "${MSVC${v}_CRT_DIR}/msvcr${v}0.dll")
+ endif()
else()
set(__install__libs)
endif()
@@ -183,8 +187,12 @@ if(MSVC)
"${MSVC${v}_REDIST_DIR}/Debug_NonRedist/${CMAKE_MSVC_ARCH}/Microsoft.VC${v}0.DebugCRT")
set(__install__libs ${__install__libs}
"${MSVC${v}_CRT_DIR}/msvcp${v}0d.dll"
- "${MSVC${v}_CRT_DIR}/msvcr${v}0d.dll"
)
+ if(NOT v VERSION_LESS 14)
+ list(APPEND __install__libs "${MSVC${v}_CRT_DIR}/vcruntime${v}0d.dll")
+ else()
+ list(APPEND __install__libs "${MSVC${v}_CRT_DIR}/msvcr${v}0d.dll")
+ endif()
endif()
endmacro()