mirror of
https://github.com/Kitware/CMake.git
synced 2026-01-04 04:40:56 -06:00
IRSL: Install vcruntime140_1.dll if available
VS 2019 now distributes this additional runtime DLL with its `14.2x` toolsets. Fixes: #19829
This commit is contained in:
@@ -288,6 +288,9 @@ if(MSVC)
|
||||
"${MSVC_CRT_DIR}/msvcp${v}.dll"
|
||||
)
|
||||
if(NOT vs VERSION_LESS 14)
|
||||
if(EXISTS "${MSVC_CRT_DIR}/vcruntime${v}_1.dll")
|
||||
list(APPEND __install__libs "${MSVC_CRT_DIR}/vcruntime${v}_1.dll")
|
||||
endif()
|
||||
list(APPEND __install__libs
|
||||
"${MSVC_CRT_DIR}/vcruntime${v}.dll"
|
||||
"${MSVC_CRT_DIR}/concrt${v}.dll"
|
||||
@@ -306,6 +309,9 @@ if(MSVC)
|
||||
"${MSVC_CRT_DIR}/msvcp${v}d.dll"
|
||||
)
|
||||
if(NOT vs VERSION_LESS 14)
|
||||
if(EXISTS "${MSVC_CRT_DIR}/vcruntime${v}_1d.dll")
|
||||
list(APPEND __install__libs "${MSVC_CRT_DIR}/vcruntime${v}_1d.dll")
|
||||
endif()
|
||||
list(APPEND __install__libs
|
||||
"${MSVC_CRT_DIR}/vcruntime${v}d.dll"
|
||||
"${MSVC_CRT_DIR}/concrt${v}d.dll"
|
||||
|
||||
Reference in New Issue
Block a user