瀏覽代碼

IRSL: Prefer MSVC runtime libraries from newest toolset first

Brad King 6 年之前
父節點
當前提交
2eecd1c3bc
共有 1 個文件被更改,包括 1 次插入0 次删除
  1. 1 0
      Modules/InstallRequiredSystemLibraries.cmake

+ 1 - 0
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)