libgit2 / libgit2sharp.nativebinaries

MIT License
28 stars 62 forks source link

Trying to build without CMake installed gives a confusing error message #58

Open carlosmn opened 6 years ago

carlosmn commented 6 years ago

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.