1
0
Fork 0

windows: Don't manually add c:\Program Files (x86)\GnuWin32\bin to the path

The GnuWin32 tools installed by Chocolatey reside in C:\GnuWin, and
are added automatically to the path.

The CMake tools aren't added automatically to the path though, so
that entry still is useful.

(However, the Visual Studio installation also brings along
a different version of CMake that ends up found if the one we
installed via Chocolatey isn't available.)
This commit is contained in:
Martin Storsjö 2021-03-18 14:26:11 +02:00 committed by Mikhail Goncharov
parent dee182ad1c
commit b11b61d04f

View file

@ -54,7 +54,7 @@ ENV PYTHONIOENCODING=UTF-8
# update the path variable # update the path variable
RUN powershell -NoProfile -InputFormat None -Command ` RUN powershell -NoProfile -InputFormat None -Command `
$path = $env:path + ';c:\Program Files (x86)\GnuWin32\bin;C:\Program Files\CMake\bin'; ` $path = $env:path + ';C:\Program Files\CMake\bin'; `
Set-ItemProperty -Path 'HKLM:\SYSTEM\CurrentControlSet\Control\Session Manager\Environment\' -Name Path -Value $path Set-ItemProperty -Path 'HKLM:\SYSTEM\CurrentControlSet\Control\Session Manager\Environment\' -Name Path -Value $path
# use this folder to store the worksapce' # use this folder to store the worksapce'