diff --git a/azure/set_vs_toolchain.cmd b/azure/set_vs_toolchain.cmd index 6ffb69f..f6f2930 100644 --- a/azure/set_vs_toolchain.cmd +++ b/azure/set_vs_toolchain.cmd @@ -1,5 +1,12 @@ @@echo on REM set Visual Studio toolchain given bitness, VS year and toolchain number. + +REM Parts of this file copied from: +REM https://github.com/conda-forge/vc-feedstock/blob/7c0aa76218f369227d6a7fc78f981b100d68d50a/recipe/activate.bat +REM licensed as follows: +REM BSD-3-Clause +REM Copyright conda-forge contributors + IF [%1] == [] GOTO NoArgErr set VS_BITS=%1 IF [%2] == [] GOTO NoArgErr @@ -7,7 +14,6 @@ set VS_YEAR=%2 IF [%3] == [] GOTO NoArgErr set VS_TOOLCHAIN=%3 - REM Tools can come from any of Professional, Community, BuildTools or Enterprise install. if not exist "%VSINSTALLDIR%" ( set "VSINSTALLDIR=%ProgramFiles(x86)%\Microsoft Visual Studio\%VS_YEAR%\Professional\"