Skip to content

Commit

Permalink
Add check back + patch CMakeLists.txt
Browse files Browse the repository at this point in the history
  • Loading branch information
jairbubbles committed Aug 17, 2021
1 parent 0bab4ff commit 989f084
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions build.libgit2.ps1
Original file line number Diff line number Diff line change
Expand Up @@ -93,11 +93,17 @@ function Assert-Consistent-Naming($expected, $path) {
$dll = get-item $path

Ensure-Property $expected $dll.Name "Name" $dll.Fullname
Ensure-Property $expected $dll.VersionInfo.InternalName "VersionInfo.InternalName" $dll.Fullname
Ensure-Property $expected $dll.VersionInfo.OriginalFilename "VersionInfo.OriginalFilename" $dll.Fullname
}

try {
Push-Location $libgit2Directory

# Patch CMakeLists.txt to fix LIBGIT2_FILENAME not being used when compiling the .rc file
$libgit2CMakeLists = Join-Path $libgit2Directory "src\CMakeLists.txt"
(Get-Content $libgit2CMakeLists).Replace('target_compile_definitions(git2internal PRIVATE LIBGIT2_FILENAME', 'target_compile_definitions(git2 PRIVATE LIBGIT2_FILENAME') | Set-Content $libgit2CMakeLists

$cmake = Find-CMake
$ctest = Join-Path (Split-Path -Parent $cmake) "ctest.exe"

Expand Down

0 comments on commit 989f084

Please sign in to comment.