You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
if (-not ($machinePath.ToLower().Contains($chocolateyPath.ToLower()))) {
2167
-
Write-Log"Adding $chocolateyPath to Path environment variable"
2168
-
$env:Path+=";$chocolateyPath"
2169
-
$newMachineEnvironmentPath+=";$chocolateyPath"
2170
-
} else {
2171
-
Write-Log"$chocolateyPath already present in Path environment variable"
2172
-
}
2173
-
} else {
2174
-
Write-Error"Chocolatey is required to install missing dependencies. Please install it from https://chocolatey.org/ manually. Alternatively, install cmake and Windows 10 SDK."
2175
-
return
2176
-
}
2177
-
} else {
2178
-
Write-Log"Skipping installation of chocolatey, cause both cmake and Win 10 SDK are present."
2179
-
}
2180
-
2181
2156
# Install cmake
2182
-
$cmakePath="${env:ProgramFiles}\CMake\bin"
2183
-
if($cmakePresent-and!($force.IsPresent)) {
2184
-
Write-Log"Cmake is already installed. Skipping installation."
2157
+
#$cmakePath = "${env:ProgramFiles}\CMake\bin"
2158
+
if($cmakePresent) {
2159
+
Write-Log"Cmake is already installed."
2185
2160
} else {
2186
-
Write-Log"Cmake not present or -Force used. Installing cmake."
0 commit comments