file(GET_RUNTIME_DEPENDENCIES): Support VS 2026 without VS 2022

Find MSVC tools in VS 2026 installation.

This was missed in commit 3392b371 (VS: Add Visual Studio 18 2026
generator, 2025-08-20, v4.2.0-rc1~165^2~1).  Follow the pattern from
commit 235b5fb05b (file(GET_RUNTIME_DEPENDENCIES): Support VS 2022
without VS 2019, 2022-05-19, v3.21.7~3^2).

Fixes: #27511
This commit is contained in:
Clinton Stimpson
2026-01-14 10:42:40 -05:00
committed by Brad King
parent 048f2924bf
commit f51dd918b2
+1
View File
@@ -236,6 +236,7 @@ bool cmRuntimeDependencyArchive::GetGetRuntimeDependenciesCommand(
cmGlobalGenerator* gg = this->GetMakefile()->GetGlobalGenerator();
// Add newer Visual Studio paths
AddVisualStudioPath(paths, "Visual Studio 18 ", 18, gg);
AddVisualStudioPath(paths, "Visual Studio 17 ", 17, gg);
AddVisualStudioPath(paths, "Visual Studio 16 ", 16, gg);
AddVisualStudioPath(paths, "Visual Studio 15 ", 15, gg);