Skip to content
  • Brad King's avatar
    VS: Fix standalone Windows7.1SDK toolset selection · 27431de1
    Brad King authored
    Since commit v3.7.0-rc1~142^2~1 (VS: Explicitly default to v100 toolset
    in Visual Studio 2010, 2016-07-21) we prefer to always set a platform
    toolset explicitly so that `CMAKE_VS_PLATFORM_TOOLSET` can be reported.
    However, the `v100` default for the VS 10 generator is not appropriate
    for all environments.  We fixed support for VS 2010 Express Edition in
    commit v3.7.0-rc1~142^2 (VS: Do not default to missing v100 64-bit
    toolset on VS 2010 Express, 2016-09-09).
    
    Fix support for the standalone Windows7.1SDK toolset environment by
    recognizing the `PlatformToolset` environment variable that it sets to
    `Windows7.1SDK` and using this as our default toolset instead.
    
    Closes: #16483
    27431de1