Skip to content

Commit 6af10e0

Browse files
authored
Chocolatey portable packages stored in bin folder
- Add missing bin folder to chocolatey path - Re-add output of cmake version for debuggin
1 parent 7a9da32 commit 6af10e0

File tree

1 file changed

+6
-3
lines changed

1 file changed

+6
-3
lines changed

build.ps1

Lines changed: 6 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -325,8 +325,11 @@ try
325325
rm -r CMakeFiles -ErrorAction:SilentlyContinue
326326
Write-Diagnostic "Running cmake"
327327
$cmake_path = "cmake.exe";
328-
if ($env:ChocolateyInstall -And (Test-Path ($env:ChocolateyInstall + "\" + $cmake_path) )){
329-
$cmake_path = $env:ChocolateyInstall + "\" + $cmake_path;
328+
if ($env:ChocolateyInstall -And (Test-Path ($env:ChocolateyInstall + "\bin\" + $cmake_path)))
329+
{
330+
$cmake_path = $env:ChocolateyInstall + "\bin\" + $cmake_path;
331+
332+
&"$cmake_path" --version
330333
}
331334
&"$cmake_path" -LAH -G "$CmakeGenerator$CmakeArch" -DUSE_SANDBOX=Off -DCEF_RUNTIME_LIBRARY_FLAG=/MD .
332335

@@ -759,4 +762,4 @@ try
759762
catch
760763
{
761764
WriteException $_;
762-
}
765+
}

0 commit comments

Comments
 (0)