summaryrefslogtreecommitdiff
path: root/Modules/InstallRequiredSystemLibraries.cmake
diff options
context:
space:
mode:
authorBrad King <brad.king@kitware.com>2019-10-11 11:57:39 -0400
committerBrad King <brad.king@kitware.com>2019-10-11 11:57:39 -0400
commit2eecd1c3bce761510f7090629c807a93e3742b1e (patch)
tree09a0158bef7b8d45d33c2ba011afe32971c11762 /Modules/InstallRequiredSystemLibraries.cmake
parent6fb747a01c27a2226fe4cbf77bc19e6d21286f81 (diff)
downloadcmake-2eecd1c3bce761510f7090629c807a93e3742b1e.tar.gz
IRSL: Prefer MSVC runtime libraries from newest toolset first
Diffstat (limited to 'Modules/InstallRequiredSystemLibraries.cmake')
-rw-r--r--Modules/InstallRequiredSystemLibraries.cmake1
1 files changed, 1 insertions, 0 deletions
diff --git a/Modules/InstallRequiredSystemLibraries.cmake b/Modules/InstallRequiredSystemLibraries.cmake
index e3eeea46ce..0f8c560e89 100644
--- a/Modules/InstallRequiredSystemLibraries.cmake
+++ b/Modules/InstallRequiredSystemLibraries.cmake
@@ -258,6 +258,7 @@ if(MSVC)
cmake_host_system_information(RESULT _vs_dir QUERY VS_${_vs_ver}_DIR) # undocumented query
if(IS_DIRECTORY "${_vs_dir}")
file(GLOB _vs_glob_redist_paths "${_vs_dir}/VC/Redist/MSVC/*")
+ list(REVERSE _vs_glob_redist_paths)
list(APPEND _vs_redist_paths ${_vs_glob_redist_paths})
endif()
unset(_vs_glob_redist_paths)