libgit2sharp.nativebinaries icon indicating copy to clipboard operation
libgit2sharp.nativebinaries copied to clipboard

Trying to build without CMake installed gives a confusing error message

Open carlosmn opened this issue 8 years ago • 0 comments
trafficstars

Namely

.\build.libgit2.ps1 14
Index was outside the bounds of the array.
At C:\source\github.com\libgit2sharp\libgit2sharp.nativebinaries\build.libgit2.ps1:71 char:16
+     $cmake = @(Get-Command cmake.exe)[0] 2>$null
+                ~~~~~~~~~~~~~~~~~~~~~
    + CategoryInfo          : OperationStopped: (:) [], IndexOutOfRangeException
    + FullyQualifiedErrorId : System.IndexOutOfRangeException

which seems to come from @(Get-Command cmake.exe) returning an empty array.

carlosmn avatar Nov 21 '17 14:11 carlosmn