File tree 1 file changed +3
-3
lines changed
1 file changed +3
-3
lines changed Original file line number Diff line number Diff line change @@ -100,16 +100,16 @@ function Assert-Consistent-Naming($expected, $path) {
100
100
try {
101
101
Push-Location $libgit2Directory
102
102
103
+ # Patch CMakeLists.txt to fix LIBGIT2_FILENAME not being used when compiling the .rc file
104
+ (Get-Content src\CMakeLists.txt) -replace ' target_compile_definitions(git2internal PRIVATE LIBGIT2_FILENAME=\"${LIBGIT2_FILENAME}\")' , ' target_compile_definitions(git2 PRIVATE LIBGIT2_FILENAME=\"${LIBGIT2_FILENAME}\")' | Set-Content src\CMakeLists.txt
105
+
103
106
$cmake = Find-CMake
104
107
$ctest = Join-Path (Split-Path - Parent $cmake ) " ctest.exe"
105
108
106
109
Run- Command - Quiet { & remove-item build - recurse - force - ErrorAction Ignore }
107
110
Run- Command - Quiet { & mkdir build }
108
111
cd build
109
112
110
- # Patch CMakeLists.txt to fix versions
111
- (Get-Content src\CMakeLists.txt) -replace ' target_compile_definitions(git2internal PRIVATE LIBGIT2_FILENAME=\"${LIBGIT2_FILENAME}\")' , ' target_compile_definitions(git2 PRIVATE LIBGIT2_FILENAME=\"${LIBGIT2_FILENAME}\")' | Set-Content src\CMakeLists.txt
112
-
113
113
if ($x86.IsPresent ) {
114
114
Write-Output " Building 32-bit..."
115
115
Run- Command - Fatal { & $cmake - G " Visual Studio 16 2019" - A Win32 - D ENABLE_TRACE= ON - D USE_SSH= OFF - D " BUILD_CLAR=$build_clar " - D " LIBGIT2_FILENAME=$binaryFilename " .. }
You can’t perform that action at this time.
0 commit comments