summaryrefslogtreecommitdiffstats
path: root/src/jaegertracing/opentelemetry-cpp/ci/setup_windows_cmake.ps1
diff options
context:
space:
mode:
authorDaniel Baumann <daniel.baumann@progress-linux.org>2024-04-21 11:54:28 +0000
committerDaniel Baumann <daniel.baumann@progress-linux.org>2024-04-21 11:54:28 +0000
commite6918187568dbd01842d8d1d2c808ce16a894239 (patch)
tree64f88b554b444a49f656b6c656111a145cbbaa28 /src/jaegertracing/opentelemetry-cpp/ci/setup_windows_cmake.ps1
parentInitial commit. (diff)
downloadceph-e6918187568dbd01842d8d1d2c808ce16a894239.tar.xz
ceph-e6918187568dbd01842d8d1d2c808ce16a894239.zip
Adding upstream version 18.2.2.upstream/18.2.2
Signed-off-by: Daniel Baumann <daniel.baumann@progress-linux.org>
Diffstat (limited to 'src/jaegertracing/opentelemetry-cpp/ci/setup_windows_cmake.ps1')
-rwxr-xr-xsrc/jaegertracing/opentelemetry-cpp/ci/setup_windows_cmake.ps117
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)