Revert "Enable detection cmake script for Visual Studio 2026 and pre-release …" (#14268)

This reverts commit 893b5a3d33afb54e1ffe725e880b131c826f7201.

Ben Hillis committed Feb 24, 2026 at 17:48 UTC 6e6f4116b99c48ec9ac10f30802596f06fc37d30
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,19.0)" -products * -requires Microsoft.VisualStudio.Component.VC.Llvm.Clang -property installationPath -prerelease
265 + COMMAND "${VSWHERE_SOURCE_DIR}/vswhere.exe" -version "[17.0,18.0)" -products * -requires Microsoft.VisualStudio.Component.VC.Llvm.Clang -property installationPath
266 OUTPUT_VARIABLE VS_INSTALL_DIR
267 OUTPUT_STRIP_TRAILING_WHITESPACE
268 COMMAND_ERROR_IS_FATAL ANY