From e6918187568dbd01842d8d1d2c808ce16a894239 Mon Sep 17 00:00:00 2001 From: Daniel Baumann Date: Sun, 21 Apr 2024 13:54:28 +0200 Subject: Adding upstream version 18.2.2. Signed-off-by: Daniel Baumann --- .../opentelemetry-cpp/ci/setup_windows_cmake.ps1 | 17 +++++++++++++++++ 1 file changed, 17 insertions(+) create mode 100755 src/jaegertracing/opentelemetry-cpp/ci/setup_windows_cmake.ps1 (limited to 'src/jaegertracing/opentelemetry-cpp/ci/setup_windows_cmake.ps1') 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) -- cgit v1.2.3