Skip to content

Revert "Enable detection cmake script for Visual Studio 2026 and pre-release versions of Visual Studio"#14268

Merged
benhillis merged 1 commit into
masterfrom
revert-14160-addDev18.0
Feb 25, 2026
Merged

Revert "Enable detection cmake script for Visual Studio 2026 and pre-release versions of Visual Studio"#14268
benhillis merged 1 commit into
masterfrom
revert-14160-addDev18.0

Conversation

@benhillis

Copy link
Copy Markdown
Member

Reverts #14160

This causes issues when multiple versions of Visual Studio are installed.

Comment thread CMakeLists.txt
# Require that Clang be installed in the product to potentially de-deduplicate
execute_process(
COMMAND "${VSWHERE_SOURCE_DIR}/vswhere.exe" -version "[17.0,19.0)" -products * -requires Microsoft.VisualStudio.Component.VC.Llvm.Clang -property installationPath -prerelease
COMMAND "${VSWHERE_SOURCE_DIR}/vswhere.exe" -version "[17.0,18.0)" -products * -requires Microsoft.VisualStudio.Component.VC.Llvm.Clang -property installationPath

Copy link
Copy Markdown
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I could be convinced to add -prerelease back, but I'm not sure there even are prerelease versions of VS2022 anymore...

Copilot AI left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull request overview

This PR reverts changes to the Visual Studio detection logic in CMakeLists.txt that were causing build failures when multiple versions of Visual Studio are installed. The original change expanded the vswhere version range to include VS2026 and added support for pre-release versions, but this caused vswhere to select newer/preview versions instead of the required VS2022.

Changes:

  • Narrowed vswhere version range from [17.0,19.0) back to [17.0,18.0) to target only VS2022
  • Removed -prerelease flag to exclude pre-release Visual Studio versions from detection
@benhillis benhillis enabled auto-merge (squash) February 25, 2026 01:45

@OneBlue OneBlue left a comment

Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Sad that we have to revert but given that there's no support for VS 2026 in our pipeline at the moment I think this is the right thing to do for now

@benhillis benhillis merged commit 6e6f411 into master Feb 25, 2026
7 of 10 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

3 participants