Skip to content

Commit 893b5a3

Browse files
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>
1 parent 0f7ed10 commit 893b5a3

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

CMakeLists.txt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -262,7 +262,7 @@ endif()
262262
# N.B. The version is set to VS2022 to ensure local runs match pipeline behavior
263263
# Require that Clang be installed in the product to potentially de-deduplicate
264264
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
266266
OUTPUT_VARIABLE VS_INSTALL_DIR
267267
OUTPUT_STRIP_TRAILING_WHITESPACE
268268
COMMAND_ERROR_IS_FATAL ANY

0 commit comments

Comments
 (0)