From aeffa625e55eea41a86a728c14a95d05bc3de0e9 Mon Sep 17 00:00:00 2001 From: Alexander Neumann <30894796+Neumann-A@users.noreply.github.com> Date: Sat, 28 Mar 2020 04:19:53 +0100 Subject: [vcpkg] Add the possibility to load vcvars.bat with external toolchain. (#10399) * Add VCPKG_LOAD_VCVARS_ENV allow loading vcvars.bat if an external toolchain file is used. * add documentation --- docs/users/triplets.md | 4 ++++ 1 file changed, 4 insertions(+) (limited to 'docs/users') diff --git a/docs/users/triplets.md b/docs/users/triplets.md index 21dea5c31..080475651 100644 --- a/docs/users/triplets.md +++ b/docs/users/triplets.md @@ -125,6 +125,10 @@ Valid settings: * The Visual Studio 2017 platform toolset is `v141`. * The Visual Studio 2015 platform toolset is `v140`. +### VCPKG_LOAD_VCVARS_ENV +If `VCPKG_CHAINLOAD_TOOLCHAIN_FILE` is used, VCPKG will not setup the Visual Studio environment. +Setting `VCPKG_LOAD_VCVARS_ENV` to (true|1|on) changes this behavior so that the Visual Studio environment is setup following the same rules as if `VCPKG_CHAINLOAD_TOOLCHAIN_FILE` was not set. + ## MacOS Variables ### VCPKG_INSTALL_NAME_DIR -- cgit v1.2.3