aboutsummaryrefslogtreecommitdiff
path: root/kokoro/scripts/windows/build.bat
diff options
context:
space:
mode:
Diffstat (limited to 'kokoro/scripts/windows/build.bat')
-rw-r--r--kokoro/scripts/windows/build.bat8
1 files changed, 7 insertions, 1 deletions
diff --git a/kokoro/scripts/windows/build.bat b/kokoro/scripts/windows/build.bat
index 3f245f2..e59e8df 100644
--- a/kokoro/scripts/windows/build.bat
+++ b/kokoro/scripts/windows/build.bat
@@ -18,7 +18,11 @@ set BUILD_ROOT=%cd%
set SRC=%cd%\github\amber
set BUILD_TYPE=%1
-set PATH=C:\python36;%PATH%
+choco install cmake --pre --yes --no-progress
+choco upgrade cmake --pre --yes --no-progress
+
+:: Force usage of python 3.6 and add cmake to the path.
+set PATH=C:\python36;"C:\Program Files\CMake\bin";%PATH%
cd %SRC%
python tools\git-sync-deps
@@ -29,6 +33,8 @@ python tools\git-sync-deps
call "C:\Program Files (x86)\Microsoft Visual Studio\2017\Community\VC\Auxiliary\Build\vcvarsall.bat" x64
echo "Using VS 2017..."
+cmake --version
+
cd %SRC%
mkdir build
cd build