Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -30,14 +30,16 @@
<PropertyGroup>
<_CMakeMultiConfigurationGenerator>true</_CMakeMultiConfigurationGenerator>
<_CMakePassArchitectureToGenerator>true</_CMakePassArchitectureToGenerator>
<!-- We limit the VS version range for the generator since CMake only knows about specific VS versions -->
<VSGeneratorVersionRange Condition="'$(VSGeneratorVersionRange)' == ''">[,17.0)</VSGeneratorVersionRange>
<!-- Visual Studio uses the Win32 name for the x86 target architecture. -->
<Platform Condition="'$(Platform)' == 'x86'">Win32</Platform>
</PropertyGroup>

<Error Condition="'$(_VSNativeCompilerComponentArchName)' == ''" Text="Unable to determine if Visual Studio has MSVC tools installed for the '$(Platform)' architecture." />

<Exec
Command="$(VSWherePath) -latest -prerelease -products * -requires $(_VSNativeCompilerComponentName) -property installationVersion"
Command="$(VSWherePath) -latest -prerelease -products * -version $(VSGeneratorVersionRange) -requires $(_VSNativeCompilerComponentName) -property installationVersion"
EchoOff="true"
ConsoleToMsBuild="true"
StandardOutputImportance="Low">
Expand Down