@@ -34,8 +34,8 @@ $hashFile = Join-Path $projectDirectory "nuget.package\libgit2\libgit2_hash.txt"
34
34
$sha = Get-Content $hashFile
35
35
$binaryFilename = " git2-" + $sha.Substring (0 , 7 )
36
36
37
- $build_clar = ' OFF'
38
- if ($test.IsPresent ) { $build_clar = ' ON' }
37
+ $build_tests = ' OFF'
38
+ if ($test.IsPresent ) { $build_tests = ' ON' }
39
39
40
40
$configuration = " Release"
41
41
if ($debug.IsPresent ) { $configuration = " Debug" }
@@ -120,7 +120,7 @@ try {
120
120
121
121
if ($x86.IsPresent ) {
122
122
Write-Output " Building x86..."
123
- Run- Command - Fatal { & $cmake - A Win32 - D ENABLE_TRACE= ON - D USE_SSH= OFF - D " BUILD_CLAR= $build_clar " - D " BUILD_CLI=OFF" - D " LIBGIT2_FILENAME=$binaryFilename " .. }
123
+ Run- Command - Fatal { & $cmake - A Win32 - D ENABLE_TRACE= ON - D USE_SSH= OFF - D " BUILD_TESTS= $build_tests " - D " BUILD_CLI=OFF" - D " LIBGIT2_FILENAME=$binaryFilename " .. }
124
124
Run- Command - Fatal { & $cmake -- build . -- config $configuration }
125
125
if ($test.IsPresent ) { Run- Command - Quiet - Fatal { & $ctest - V . } }
126
126
cd $configuration
@@ -136,7 +136,7 @@ try {
136
136
Write-Output " Building x64..."
137
137
Run- Command - Quiet { & mkdir build64 }
138
138
cd build64
139
- Run- Command - Fatal { & $cmake - A x64 - D THREADSAFE= ON - D USE_SSH= OFF - D ENABLE_TRACE= ON - D " BUILD_CLAR= $build_clar " - D " BUILD_CLI=OFF" - D " LIBGIT2_FILENAME=$binaryFilename " ../ .. }
139
+ Run- Command - Fatal { & $cmake - A x64 - D THREADSAFE= ON - D USE_SSH= OFF - D ENABLE_TRACE= ON - D " BUILD_TESTS= $build_tests " - D " BUILD_CLI=OFF" - D " LIBGIT2_FILENAME=$binaryFilename " ../ .. }
140
140
Run- Command - Fatal { & $cmake -- build . -- config $configuration }
141
141
if ($test.IsPresent ) { Run- Command - Quiet - Fatal { & $ctest - V . } }
142
142
cd $configuration
@@ -151,7 +151,7 @@ try {
151
151
Write-Output " Building arm64..."
152
152
Run- Command - Quiet { & mkdir buildarm64 }
153
153
cd buildarm64
154
- Run- Command - Fatal { & $cmake - A ARM64 - D THREADSAFE= ON - D USE_SSH= OFF - D ENABLE_TRACE= ON - D " BUILD_CLAR= $build_clar " - D " BUILD_CLI=OFF" - D " LIBGIT2_FILENAME=$binaryFilename " ../ .. }
154
+ Run- Command - Fatal { & $cmake - A ARM64 - D THREADSAFE= ON - D USE_SSH= OFF - D ENABLE_TRACE= ON - D " BUILD_TESTS= $build_tests " - D " BUILD_CLI=OFF" - D " LIBGIT2_FILENAME=$binaryFilename " ../ .. }
155
155
Run- Command - Fatal { & $cmake -- build . -- config $configuration }
156
156
if ($test.IsPresent ) { Run- Command - Quiet - Fatal { & $ctest - V . } }
157
157
cd $configuration
0 commit comments