Skip to content

Build is compatible with CMake 3.21.1 #118

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Closed
wants to merge 1 commit into from
Closed
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 2 additions & 2 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -50,9 +50,9 @@ do so easily with the scripts in this repository:
installation, and will compile both x86 and amd64 variants. (See
"Notes on Visual Studio", below). Run the build PowerShell script,
specifying the version number of Visual Studio as the first argument.
For example, to build with Visual Studio 2013 (aka "Visual Studio 12.0"):
For example, to build with Visual Studio 2019:

`build.libgit2.ps1 12`
`build.libgit2.ps1 "16 2019"`

For Linux, this will build only the architecture that you're running
(x86 or amd64). For Mac OS X, this will build a fat library that
Expand Down
4 changes: 2 additions & 2 deletions build.libgit2.ps1
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@ $libgit2Directory = Join-Path $projectDirectory "libgit2"
$x86Directory = Join-Path $projectDirectory "nuget.package\runtimes\win-x86\native"
$x64Directory = Join-Path $projectDirectory "nuget.package\runtimes\win-x64\native"
$hashFile = Join-Path $projectDirectory "nuget.package\libgit2\libgit2_hash.txt"
$sha = Get-Content $hashFile
$sha = Get-Content $hashFile

if (![string]::IsNullOrEmpty($libgit2Name)) {
$binaryFilename = $libgit2Name
Expand Down Expand Up @@ -124,7 +124,7 @@ try {
cd ..
Run-Command -Quiet { & mkdir build64 }
cd build64
Run-Command -Quiet -Fatal { & $cmake -G "Visual Studio $vs Win64" -D THREADSAFE=ON -D ENABLE_TRACE=ON -D "BUILD_CLAR=$build_clar" -D "LIBGIT2_FILENAME=$binaryFilename" ../.. }
Run-Command -Quiet -Fatal { & $cmake -G "Visual Studio $vs" -A x64 -D THREADSAFE=ON -D ENABLE_TRACE=ON -D "BUILD_CLAR=$build_clar" -D "LIBGIT2_FILENAME=$binaryFilename" ../.. }
Run-Command -Quiet -Fatal { & $cmake --build . --config $configuration }
if ($test.IsPresent) { Run-Command -Quiet -Fatal { & $ctest -V . } }
cd $configuration
Expand Down