Skip to content

VS: Add support for enumerating VS instances with vswhere

Niyas Sait requested to merge nsait-linaro/cmake:vswhere-support into master

This change adds support for finding Visual studio installation with vswhere. This is required for adding native CMake support for win/arm64 platforms where native VS libraries are not available and COM interface cannot be used.

EnumerateAndChooseVSInstance function is refactored to move all COM interface specific code to EnumerateVSInstancesWithCOM. EnumerateVSInstancesWithVswhere is introduced to enumerate installed VS instances with vswhere. All installed VS instances are fetched with the two new functions and filtering etc. happens in the second iteration in EnumerateAndChooseVSInstance

Issue: #22367 (closed)

Edited by Brad King

Merge request reports