diff options
Diffstat (limited to 'src/jaegertracing/opentelemetry-cpp/ci/setup_windows_cmake.ps1')
-rwxr-xr-x | src/jaegertracing/opentelemetry-cpp/ci/setup_windows_cmake.ps1 | 17 |
1 files changed, 17 insertions, 0 deletions
diff --git a/src/jaegertracing/opentelemetry-cpp/ci/setup_windows_cmake.ps1 b/src/jaegertracing/opentelemetry-cpp/ci/setup_windows_cmake.ps1 new file mode 100755 index 000000000..3248b4c72 --- /dev/null +++ b/src/jaegertracing/opentelemetry-cpp/ci/setup_windows_cmake.ps1 @@ -0,0 +1,17 @@ +$ErrorActionPreference = "Stop" +trap { $host.SetShouldExit(1) } + +$CMAKE_VERSION="3.15.2" +$CWD=(Get-Item -Path ".\").FullName +(new-object System.Net.WebClient). ` + DownloadFile("https://github.com/Kitware/CMake/releases/download/v$CMAKE_VERSION/cmake-$CMAKE_VERSION-win64-x64.zip", ` + "$CWD\cmake-$CMAKE_VERSION-win64-x64.zip") + +unzip cmake-$CMAKE_VERSION-win64-x64.zip + +$ENV:PATH="$ENV:PATH;$CWD\cmake-$CMAKE_VERSION-win64-x64\bin" +cmake --help +[Environment]::SetEnvironmentVariable( + "Path", + [Environment]::GetEnvironmentVariable("Path", [EnvironmentVariableTarget]::Machine) + ";$CWD\cmake-$CMAKE_VERSION-win64-x64\bin", + [EnvironmentVariableTarget]::Machine) |