jenkins: Fix Windows build to specify Studio version

If there are multiple versions available, cmake won't choose the Visual
Studio version selected by vsvars. So we have to explicitly specify the
generator to use.

This allows grpc-java to run on the shared Windows workers instead of
its own specialized instance.
This commit is contained in:
Eric Anderson 2016-08-06 08:05:12 -07:00
parent 54f5c4ba89
commit ff7fb5ff52
1 changed files with 1 additions and 1 deletions

View File

@ -28,7 +28,7 @@ del protobuf.zip
pushd protobuf-3.0.0\cmake pushd protobuf-3.0.0\cmake
mkdir build mkdir build
cd build cd build
cmake -Dprotobuf_BUILD_TESTS=OFF .. cmake -Dprotobuf_BUILD_TESTS=OFF -G "Visual Studio %VisualStudioVersion:~0,2%" ..
msbuild /maxcpucount /p:Configuration=Release libprotoc.vcxproj msbuild /maxcpucount /p:Configuration=Release libprotoc.vcxproj
call extract_includes.bat call extract_includes.bat
popd popd