Enable detection cmake script for Visual Studio 2026 and pre-release versions of Visual Studio (#14160)

* Updating to support VS2026 and insiders builds * Updated max ver (exclusive) to 19.0 * Fix command for vswhere to include prerelease --------- Co-authored-by: Ben Hillis <benhillis@gmail.com>

Andy Sterland committed Feb 11, 2026 at 17:54 UTC 893b5a3d33afb54e1ffe725e880b131c826f7201
1 file changed +1 -1
CMakeLists.txt
+1 -1
@@ -262,7 +262,7 @@ endif()
262 # N.B. The version is set to VS2022 to ensure local runs match pipeline behavior
263 # Require that Clang be installed in the product to potentially de-deduplicate
264 execute_process(
265 - COMMAND "${VSWHERE_SOURCE_DIR}/vswhere.exe" -version "[17.0,18.0)" -products * -requires Microsoft.VisualStudio.Component.VC.Llvm.Clang -property installationPath
265 + COMMAND "${VSWHERE_SOURCE_DIR}/vswhere.exe" -version "[17.0,19.0)" -products * -requires Microsoft.VisualStudio.Component.VC.Llvm.Clang -property installationPath -prerelease
266 OUTPUT_VARIABLE VS_INSTALL_DIR
267 OUTPUT_STRIP_TRAILING_WHITESPACE
268 COMMAND_ERROR_IS_FATAL ANY