Skip to content

Commit 74d6ba0

Browse files
committed
Use any VS not just VS 2019
1 parent 5ea5138 commit 74d6ba0

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

build.libgit2.ps1

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -120,7 +120,7 @@ try {
120120

121121
if ($x86.IsPresent) {
122122
Write-Output "Building x86..."
123-
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" .. }
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" .. }
124124
Run-Command -Fatal { & $cmake --build . --config $configuration }
125125
if ($test.IsPresent) { Run-Command -Quiet -Fatal { & $ctest -V . } }
126126
cd $configuration
@@ -136,7 +136,7 @@ try {
136136
Write-Output "Building x64..."
137137
Run-Command -Quiet { & mkdir build64 }
138138
cd build64
139-
Run-Command -Fatal { & $cmake -G "Visual Studio 16 2019" -A x64 -D THREADSAFE=ON -D USE_SSH=OFF -D ENABLE_TRACE=ON -D "BUILD_CLAR=$build_clar" -D "LIBGIT2_FILENAME=$binaryFilename" ../.. }
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" ../.. }
140140
Run-Command -Fatal { & $cmake --build . --config $configuration }
141141
if ($test.IsPresent) { Run-Command -Quiet -Fatal { & $ctest -V . } }
142142
cd $configuration
@@ -151,7 +151,7 @@ try {
151151
Write-Output "Building arm64..."
152152
Run-Command -Quiet { & mkdir buildarm64 }
153153
cd buildarm64
154-
Run-Command -Fatal { & $cmake -G "Visual Studio 16 2019" -A ARM64 -D THREADSAFE=ON -D USE_SSH=OFF -D ENABLE_TRACE=ON -D "BUILD_CLAR=$build_clar" -D "LIBGIT2_FILENAME=$binaryFilename" ../.. }
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" ../.. }
155155
Run-Command -Fatal { & $cmake --build . --config $configuration }
156156
if ($test.IsPresent) { Run-Command -Quiet -Fatal { & $ctest -V . } }
157157
cd $configuration

0 commit comments

Comments
 (0)