Skip to content

Commit 989f084

Browse files
committed
Add check back + patch CMakeLists.txt
1 parent 0bab4ff commit 989f084

File tree

1 file changed

+6
-0
lines changed

1 file changed

+6
-0
lines changed

build.libgit2.ps1

+6
Original file line numberDiff line numberDiff line change
@@ -93,11 +93,17 @@ function Assert-Consistent-Naming($expected, $path) {
9393
$dll = get-item $path
9494

9595
Ensure-Property $expected $dll.Name "Name" $dll.Fullname
96+
Ensure-Property $expected $dll.VersionInfo.InternalName "VersionInfo.InternalName" $dll.Fullname
97+
Ensure-Property $expected $dll.VersionInfo.OriginalFilename "VersionInfo.OriginalFilename" $dll.Fullname
9698
}
9799

98100
try {
99101
Push-Location $libgit2Directory
100102

103+
# Patch CMakeLists.txt to fix LIBGIT2_FILENAME not being used when compiling the .rc file
104+
$libgit2CMakeLists = Join-Path $libgit2Directory "src\CMakeLists.txt"
105+
(Get-Content $libgit2CMakeLists).Replace('target_compile_definitions(git2internal PRIVATE LIBGIT2_FILENAME', 'target_compile_definitions(git2 PRIVATE LIBGIT2_FILENAME') | Set-Content $libgit2CMakeLists
106+
101107
$cmake = Find-CMake
102108
$ctest = Join-Path (Split-Path -Parent $cmake) "ctest.exe"
103109

0 commit comments

Comments
 (0)