[docs] Add documentation for VCPKG_VISUAL_STUDIO_PATH

This commit is contained in:
Robert Schumacher 2018-08-27 16:50:18 -07:00
parent 04ba5aa07b
commit 6b049c9d5a

View File

@ -41,6 +41,16 @@ This can be set to `v141`, `v140`, or left blank. If left blank, we select the l
Visual Studio 2015 platform toolset is `v140`
Visual Studio 2017 platform toolset is `v141`
### VCPKG_VISUAL_STUDIO_PATH
Specifies the Visual Studio installation to use.
When unspecified, a Visual Studio instance is selected automatically, preferring Stable 2017, then Preview 2017, then 2015.
The path should be absolute, formatted with backslashes, and have no trailing slash:
```cmake
set(VCPKG_VISUAL_STUDIO_PATH "C:\\Program Files (x86)\\Microsoft Visual Studio\\Preview\\Community")
```
### VCPKG_CHAINLOAD_TOOLCHAIN_FILE
Specifies an alternate CMake Toolchain file to use.